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

# · C# · 15 lines · 14 code · 1 blank · 0 comment · 0 complexity · 27d58ad989d0dcd172ff5fee650235b7 MD5 · raw file

  1. using Bifrost.Commands;
  2. using Bifrost.Validation;
  3. using FluentValidation;
  4. namespace Bifrost.Fakes.Commands
  5. {
  6. public class SimpleCommandInputValidator : CommandInputValidator<SimpleCommand>
  7. {
  8. public SimpleCommandInputValidator()
  9. {
  10. RuleFor(asc => asc.SomeString).NotEmpty();
  11. RuleFor(asc => asc.SomeInt).GreaterThanOrEqualTo(1);
  12. }
  13. }
  14. }