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