public bool CheckEmpty(bool currentResult) { if (_condition == null) { throw new InvalidOperationException( "Can't check a ConditionElement before the condition is set."); } return(_logicalConjunction.Evaluate(currentResult, _condition.CheckEmpty())); }
public IEnumerable <T> CheckPredicate(IEnumerable <T> currentObjects, IEnumerable <T> allObjects, Architecture architecture) { if (_predicate == null) { throw new InvalidOperationException( "Can't check a PredicateElement before the predicate is set."); } return(_logicalConjunction.Evaluate(currentObjects, _predicate.GetMatchingObjects(allObjects, architecture))); }
public bool HasNoViolations(Architecture architecture) { return(_logicalConjunction.Evaluate(_oldRule.HasNoViolations(architecture), _currentArchRuleCreator.HasNoViolations(architecture))); }
public bool HasNoViolations(Architecture architecture) { return(_logicalConjunction.Evaluate(_firstRule.HasNoViolations(architecture), _secondRule.HasNoViolations(architecture))); }