Esempio n. 1
0
            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()));
            }
Esempio n. 2
0
                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)));
 }
Esempio n. 4
0
 public bool HasNoViolations(Architecture architecture)
 {
     return(_logicalConjunction.Evaluate(_firstRule.HasNoViolations(architecture),
                                         _secondRule.HasNoViolations(architecture)));
 }