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 IEnumerable <ConditionResult> Check(IEnumerable <TRuleType> objects, Architecture architecture) { return(_relation .GetCondition(_predicate.GetMatchingObjects(_relatedTypes.GetObjects(architecture), architecture)) .Check(objects, architecture)); }