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