Example #1
0
 void with_method_build(
     IValidationRule <ModelA> rule)
 {
     rule
     .For(m => m.Name)
     .Assert(_is.NotNull)
     .Assert(_is.NotEmpty);
 }
Example #2
0
 protected override void Validate(IValidationRule <B> validationRules)
 {
     validationRules.For(b => b.A)
     .Assert(_aValidator);
 }
Example #3
0
 protected override void Validate(IValidationRule <A> validationRules)
 {
     validationRules.For(a => a.Name)
     .Assert(Is.NotNull);
 }