Exemple #1
0
 public TRuleTypeShouldConjunction FollowCustomPredicate(Func <TReferenceType, bool> predicate,
                                                         string description)
 {
     _ruleCreator.ContinueComplexCondition(
         ObjectPredicatesDefinition <TReferenceType> .FollowCustomPredicate(predicate, description));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction FollowCustomPredicate(Func <TRuleType, bool> predicate, string description)
 {
     _ruleCreator.AddPredicate(
         ObjectPredicatesDefinition <TRuleType> .FollowCustomPredicate(predicate, description));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }