Ejemplo n.º 1
0
 public TRuleTypeShouldConjunction AreCalledBy(Type type, params Type[] moreTypes)
 {
     _ruleCreator.ContinueComplexCondition(
         MethodMemberPredicatesDefinition.AreCalledBy(type, moreTypes));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Ejemplo n.º 2
0
 public TRuleTypeShouldConjunction AreCalledBy(IEnumerable <Type> types)
 {
     _ruleCreator.ContinueComplexCondition(
         MethodMemberPredicatesDefinition.AreCalledBy(types));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Ejemplo n.º 3
0
 public TRuleTypeShouldConjunction DoNotHaveReturnType(IEnumerable <Type> types)
 {
     _ruleCreator.ContinueComplexCondition(
         MethodMemberPredicatesDefinition.DoNotHaveReturnType(types));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Ejemplo n.º 4
0
 public TRuleTypeShouldConjunction AreCalledBy(IEnumerable <string> patterns, bool useRegularExpressions = false)
 {
     _ruleCreator.ContinueComplexCondition(
         MethodMemberPredicatesDefinition.AreCalledBy(patterns, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Ejemplo n.º 5
0
 public TRuleTypeShouldConjunction DoNotHaveReturnType(string pattern, bool useRegularExpressions = false)
 {
     _ruleCreator.ContinueComplexCondition(
         MethodMemberPredicatesDefinition.DoNotHaveReturnType(pattern, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Ejemplo n.º 6
0
 public TRuleTypeShouldConjunction DoNotHaveReturnType(IType firstType, params IType[] moreTypes)
 {
     _ruleCreator.ContinueComplexCondition(
         MethodMemberPredicatesDefinition.DoNotHaveReturnType(firstType, moreTypes));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Ejemplo n.º 7
0
 public TRuleTypeShouldConjunction AreVirtual()
 {
     _ruleCreator.ContinueComplexCondition(MethodMemberPredicatesDefinition.AreVirtual());
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Ejemplo n.º 8
0
 public TRuleTypeShouldConjunction DoNotHaveDependencyInMethodBodyTo(IObjectProvider <IType> types)
 {
     _ruleCreator.ContinueComplexCondition(
         MethodMemberPredicatesDefinition.DoNotHaveDependencyInMethodBodyTo(types));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Ejemplo n.º 9
0
 public TRuleTypeShouldConjunction DoNotHaveDependencyInMethodBodyTo(Type type, params Type[] moreTypes)
 {
     _ruleCreator.ContinueComplexCondition(
         MethodMemberPredicatesDefinition.DoNotHaveDependencyInMethodBodyTo(type, moreTypes));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Ejemplo n.º 10
0
 public TRuleTypeShouldConjunction AreNotCalledBy(IObjectProvider <IType> types)
 {
     _ruleCreator.ContinueComplexCondition(
         MethodMemberPredicatesDefinition.AreNotCalledBy(types));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Ejemplo n.º 11
0
 public TRuleTypeShouldConjunction HaveDependencyInMethodBodyTo(IEnumerable <Type> types)
 {
     _ruleCreator.ContinueComplexCondition(
         MethodMemberPredicatesDefinition.HaveDependencyInMethodBodyTo(types));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }