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