Exemplo n.º 1
0
 public TRuleTypeShouldConjunction CallAny(IEnumerable <string> patterns,
                                           bool useRegularExpressions = false)
 {
     _ruleCreator.AddCondition(
         ObjectConditionsDefinition <TRuleType> .CallAny(patterns, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Exemplo n.º 2
0
 public TRuleTypeShouldConjunction CallAny(IObjectProvider <MethodMember> methods)
 {
     _ruleCreator.AddCondition(ObjectConditionsDefinition <TRuleType> .CallAny(methods));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Exemplo n.º 3
0
 public TRuleTypeShouldConjunction CallAny(MethodMember method, params MethodMember[] moreMethods)
 {
     _ruleCreator.AddCondition(ObjectConditionsDefinition <TRuleType> .CallAny(method, moreMethods));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }