public static Task <IEnumerable <ValidationResult> > GetValidationResultsAsync(this IEnumerable <IRule> businessRules) { return(IRuleExtensions.GetValidationResultsAsync(businessRules, null)); }
/// <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)); }