Exemplo n.º 1
0
 public MethodMembersShouldConjunction HaveDependencyInMethodBodyTo(IEnumerable <string> patterns,
                                                                    bool useRegularExpressions = false)
 {
     _ruleCreator.AddCondition(
         MethodMemberConditionsDefinition.HaveDependencyInMethodBodyTo(patterns, useRegularExpressions));
     return(new MethodMembersShouldConjunction(_ruleCreator));
 }
Exemplo n.º 2
0
 public MethodMembersShouldConjunction HaveDependencyInMethodBodyTo(Type type, params Type[] moreTypes)
 {
     _ruleCreator.AddCondition(
         MethodMemberConditionsDefinition.HaveDependencyInMethodBodyTo(type, moreTypes));
     return(new MethodMembersShouldConjunction(_ruleCreator));
 }
Exemplo n.º 3
0
 public MethodMembersShouldConjunction HaveDependencyInMethodBodyTo(IEnumerable <Type> types)
 {
     _ruleCreator.AddCondition(
         MethodMemberConditionsDefinition.HaveDependencyInMethodBodyTo(types));
     return(new MethodMembersShouldConjunction(_ruleCreator));
 }