/// <inheritdoc/> public RuleSetEvaluation Evaluate(params IRule[] rules) { var evaluation = new RuleSetEvaluation(new RuleSet(rules)); evaluation.Evaluate(this); _ruleSetEvaluations.Add(evaluation); _brokenRules.AddRange(evaluation.BrokenRules); return(evaluation); }
/// <summary> /// Initializes a new instance of the <see cref="AggregateRootPerformResult"/> class. /// </summary> /// <param name="rulesResult"><see cref="RuleSetEvaluation"/> as result.</param> public AggregateRootPerformResult(RuleSetEvaluation rulesResult) { RulesResult = rulesResult; }