mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
17 lines
461 B
C#
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();
|
|
}
|
|
}
|
|
} |