예제 #1
0
 static void Validate(ValidationRuleFactory <IInterf> fact)
 {
     fact.RuleFor(x => x.A).Greater(0);
 }
예제 #2
0
 static void Validate(ValidationRuleFactory <CopyClass0> t)
 {
     t.RuleFor(x => x.A).Greater(0);
 }
예제 #3
0
 static void Validate <T>(ValidationRuleFactory <ITemplateInterf <T> > t)
 {
     t.RuleFor(x => x.A).NotEmpty();
 }
예제 #4
0
 static void Validate(ValidationRuleFactory <ICopyClass1> t)
 {
     t.RuleFor(x => x.B).Trim().Forbidden("a");
 }