Пример #1
0
 public PersonService(IPersonRuleProcessor processor)
 {
     _ruleProcessor = processor;
     _ruleProcessor.AddRules(RuleCreatorService.PersonRules);
 }
 public static (IPerson item, RuleEnumerators.RuleStatus status, string[] failedFields) Validate(this IPerson item, IPersonRuleProcessor processor)
 {
     return(processor.Process(item));
 }