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