예제 #1
0
 public static Task <IEnumerable <ValidationResult> > GetValidationResultsAsync(this IEnumerable <IRule> businessRules)
 {
     return(IRuleExtensions.GetValidationResultsAsync(businessRules, null));
 }
예제 #2
0
 /// <summary>
 /// Asynchronously invokes the rule
 /// </summary>
 /// <returns>
 /// List of validation results if the rule fails execution
 /// </returns>
 /// <param name="businessRules">An enumerable list of rule to execute</param>
 public static Task <IEnumerable <ValidationResult> > GetValidationResultsAsync(this IRule businessRule)
 {
     return(IRuleExtensions.GetValidationResultsAsync(businessRule.ToArray(), null));
 }