Example #1
0
 public Builder RuleFor(dynamic lambda, bool isSimple = true)
 {
     if (isSimple)
     {
         _object = new MonoValidate
         {
             Lambda = lambda
         };
     }
     else
     {
         _object = new CompositeValidate()
         {
             Lambda = lambda
         };
     }
     return(this);
 }
Example #2
0
 public Builder RuleFor(dynamic candidate)
 {
     _object = new MonoValidate();
     return(this);
 }