Files
modernkeepass/ModernKeePass.Application/Import/Commands/ImportFromCsv/ImportFromCsvCommandValidator.cs
2020-06-05 19:08:29 +02:00

17 lines
461 B
C#

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();
}
}
}