Пример #1
0
 public MethodMembersShouldConjunction NotHaveDependencyInMethodBodyTo(string pattern,
                                                                       bool useRegularExpressions = false)
 {
     _ruleCreator.AddCondition(
         MethodMemberConditionsDefinition.NotHaveDependencyInMethodBodyTo(pattern, useRegularExpressions));
     return(new MethodMembersShouldConjunction(_ruleCreator));
 }
Пример #2
0
 public MethodMembersShouldConjunction NotHaveDependencyInMethodBodyTo(IEnumerable <Type> types)
 {
     _ruleCreator.AddCondition(
         MethodMemberConditionsDefinition.NotHaveDependencyInMethodBodyTo(types));
     return(new MethodMembersShouldConjunction(_ruleCreator));
 }
Пример #3
0
 public MethodMembersShouldConjunction NotHaveDependencyInMethodBodyTo(Type type, params Type[] moreTypes)
 {
     _ruleCreator.AddCondition(
         MethodMemberConditionsDefinition.NotHaveDependencyInMethodBodyTo(type, moreTypes));
     return(new MethodMembersShouldConjunction(_ruleCreator));
 }