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