Esempio n. 1
0
 private static IEnumerable <ValidationResult> GetValidationResultFromCustomRule(ValidationRule rule)
 {
     return(rule.CustomRule.Validate(rule));
 }
Esempio n. 2
0
 public ValidationResult(ValidationRule rule, bool success)
 {
     this.Rule    = rule;
     this.Success = success;
 }
Esempio n. 3
0
 public IEnumerable <ValidationResult> Validate(ValidationRule rule)
 {
     yield return(new ValidationResult(rule, rule.CustomValidationAction.Invoke()));
 }