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