/Source/Bifrost.Fakes/Commands/SimpleCommandInputValidator.cs
C# | 15 lines | 14 code | 1 blank | 0 comment | 0 complexity | 27d58ad989d0dcd172ff5fee650235b7 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
- using Bifrost.Commands;
- using Bifrost.Validation;
- using FluentValidation;
-
- namespace Bifrost.Fakes.Commands
- {
- public class SimpleCommandInputValidator : CommandInputValidator<SimpleCommand>
- {
- public SimpleCommandInputValidator()
- {
- RuleFor(asc => asc.SomeString).NotEmpty();
- RuleFor(asc => asc.SomeInt).GreaterThanOrEqualTo(1);
- }
- }
- }