Files
modernkeepass/ModernKeePass.Application/Import/Commands/ImportFromCsv/ImportFromCsvCommandValidator.cs

17 lines
461 B
C#
Raw Normal View History

2020-06-05 19:08:29 +02:00
using FluentValidation;
namespace ModernKeePass.Application.Import.Commands.ImportFromCsv
{
public class ImportFromCsvCommandValidator : AbstractValidator<ImportFromCsvCommand>
{
public ImportFromCsvCommandValidator()
{
RuleFor(v => v.FilePath)
.NotNull()
.NotEmpty();
RuleFor(v => v.DestinationGroupId)
.NotNull()
.NotEmpty();
}
}
}