PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/Source/Bifrost.Fakes/Commands/SimpleCommandInputValidator.cs

#
C# | 15 lines | 14 code | 1 blank | 0 comment | 0 complexity | 27d58ad989d0dcd172ff5fee650235b7 MD5 | raw file
 1using Bifrost.Commands;
 2using Bifrost.Validation;
 3using FluentValidation;
 4
 5namespace Bifrost.Fakes.Commands
 6{
 7    public class SimpleCommandInputValidator : CommandInputValidator<SimpleCommand>
 8    {
 9        public SimpleCommandInputValidator()
10        {
11            RuleFor(asc => asc.SomeString).NotEmpty();
12            RuleFor(asc => asc.SomeInt).GreaterThanOrEqualTo(1);
13        }
14    }
15}