Esempio n. 1
0
 public GivenMethodMembersConjunction HaveDependencyInMethodBodyTo(IEnumerable <string> patterns,
                                                                   bool useRegularExpressions = false)
 {
     _ruleCreator.AddPredicate(
         MethodMemberPredicatesDefinition.HaveDependencyInMethodBodyTo(patterns, useRegularExpressions));
     return(new GivenMethodMembersConjunction(_ruleCreator));
 }
Esempio n. 2
0
 public TRuleTypeShouldConjunction HaveDependencyInMethodBodyTo(IEnumerable <string> patterns,
                                                                bool useRegularExpressions = false)
 {
     _ruleCreator.ContinueComplexCondition(
         MethodMemberPredicatesDefinition.HaveDependencyInMethodBodyTo(patterns, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Esempio n. 3
0
 public GivenMethodMembersConjunction HaveDependencyInMethodBodyTo(Type type, params Type[] moreTypes)
 {
     _ruleCreator.AddPredicate(
         MethodMemberPredicatesDefinition.HaveDependencyInMethodBodyTo(type, moreTypes));
     return(new GivenMethodMembersConjunction(_ruleCreator));
 }
Esempio n. 4
0
 public GivenMethodMembersConjunction HaveDependencyInMethodBodyTo(IEnumerable <Type> types)
 {
     _ruleCreator.AddPredicate(
         MethodMemberPredicatesDefinition.HaveDependencyInMethodBodyTo(types));
     return(new GivenMethodMembersConjunction(_ruleCreator));
 }
Esempio n. 5
0
 public TRuleTypeShouldConjunction HaveDependencyInMethodBodyTo(IEnumerable <Type> types)
 {
     _ruleCreator.ContinueComplexCondition(
         MethodMemberPredicatesDefinition.HaveDependencyInMethodBodyTo(types));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Esempio n. 6
0
 public TRuleTypeShouldConjunction HaveDependencyInMethodBodyTo(IType firstType, params IType[] moreTypes)
 {
     _ruleCreator.ContinueComplexCondition(
         MethodMemberPredicatesDefinition.HaveDependencyInMethodBodyTo(firstType, moreTypes));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }