public MethodMembersShouldConjunction NotHaveDependencyInMethodBodyTo(string pattern,
                                                                       bool useRegularExpressions = false)
 {
     _ruleCreator.AddCondition(
         MethodMemberConditionsDefinition.NotHaveDependencyInMethodBodyTo(pattern, useRegularExpressions));
     return(new MethodMembersShouldConjunction(_ruleCreator));
 }
 public MethodMembersShouldConjunction NotHaveDependencyInMethodBodyTo(IEnumerable <Type> types)
 {
     _ruleCreator.AddCondition(
         MethodMemberConditionsDefinition.NotHaveDependencyInMethodBodyTo(types));
     return(new MethodMembersShouldConjunction(_ruleCreator));
 }
 public MethodMembersShouldConjunction NotHaveDependencyInMethodBodyTo(Type type, params Type[] moreTypes)
 {
     _ruleCreator.AddCondition(
         MethodMemberConditionsDefinition.NotHaveDependencyInMethodBodyTo(type, moreTypes));
     return(new MethodMembersShouldConjunction(_ruleCreator));
 }