Esempio n. 1
0
 public static IValitator <TObject> CreateValitator <TObject>(this IValitRules <TObject> valitRules) where TObject : class
 {
     valitRules.ThrowIfNull();
     return(new Valitator <TObject>(valitRules));
 }
Esempio n. 2
0
 public static IValitRulesMessageProvider<TObject> Create(IValitRules<TObject> rules)
 {
     rules.ThrowIfNull();
     return new ValitRules<TObject>(rules.GetAllRules());
 }