private IEnumerable ValidateRules()

in src/Azure.Deployments.Extensibility.Core/V2/Validation/ModelValidator.cs [37:54]


        private IEnumerable<ErrorDetail> ValidateRules(TModel model)
        {
            var dependencyRulesSatisfied = true;

            foreach (var rule in this.rules)
            {
                if (this.dependentRules.Contains(rule) && !dependencyRulesSatisfied)
                {
                    continue;
                }

                foreach (var errorDetail in rule.Validate(model))
                {
                    dependencyRulesSatisfied = false;
                    yield return errorDetail;
                }
            }
        }