public TRuleTypeShouldConjunction AreAssignableTo(IEnumerable <string> patterns,
                                                   bool useRegularExpressions = false)
 {
     _ruleCreator.ContinueComplexCondition(
         TypePredicatesDefinition <TReferenceType> .AreAssignableTo(patterns, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Esempio n. 2
0
 public TGivenRuleTypeConjunction AreAssignableTo(IEnumerable <string> patterns,
                                                  bool useRegularExpressions = false)
 {
     _ruleCreator.AddPredicate(
         TypePredicatesDefinition <TRuleType> .AreAssignableTo(patterns, useRegularExpressions));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
Esempio n. 3
0
 public TGivenRuleTypeConjunction AreNotNested()
 {
     _ruleCreator.AddPredicate(TypePredicatesDefinition <TRuleType> .AreNotNested());
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
Esempio n. 4
0
 public TGivenRuleTypeConjunction DoNotHaveMemberWithName(string name)
 {
     _ruleCreator.AddPredicate(TypePredicatesDefinition <TRuleType> .DoNotHaveMemberWithName(name));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
Esempio n. 5
0
 public TGivenRuleTypeConjunction DoNotResideInAssembly(Assembly assembly, params Assembly[] moreAssemblies)
 {
     _ruleCreator.AddPredicate(
         TypePredicatesDefinition <TRuleType> .DoNotResideInAssembly(assembly, moreAssemblies));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
Esempio n. 6
0
 public TGivenRuleTypeConjunction DoNotResideInAssembly(string pattern, bool useRegularExpressions = false)
 {
     _ruleCreator.AddPredicate(
         TypePredicatesDefinition <TRuleType> .DoNotResideInAssembly(pattern, useRegularExpressions));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TRuleTypeShouldConjunction DoNotResideInAssembly(Assembly assembly, params Assembly[] moreAssemblies)
 {
     _ruleCreator.ContinueComplexCondition(
         TypePredicatesDefinition <TReferenceType> .DoNotResideInAssembly(assembly, moreAssemblies));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Esempio n. 8
0
 public TGivenRuleTypeConjunction ImplementInterface(string pattern, bool useRegularExpressions = false)
 {
     _ruleCreator.AddPredicate(
         TypePredicatesDefinition <TRuleType> .ImplementInterface(pattern, useRegularExpressions));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TRuleTypeShouldConjunction ImplementInterface(string pattern, bool useRegularExpressions = false)
 {
     _ruleCreator.ContinueComplexCondition(
         TypePredicatesDefinition <TReferenceType> .ImplementInterface(pattern, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
 public TRuleTypeShouldConjunction AreAssignableTo(IEnumerable <Type> types)
 {
     _ruleCreator.ContinueComplexCondition(TypePredicatesDefinition <TReferenceType> .AreAssignableTo(types));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
 public TRuleTypeShouldConjunction AreAssignableTo(Type firstType, params Type[] moreTypes)
 {
     _ruleCreator.ContinueComplexCondition(
         TypePredicatesDefinition <TReferenceType> .AreAssignableTo(firstType, moreTypes));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
 public TRuleTypeShouldConjunction AreNotNested()
 {
     _ruleCreator.ContinueComplexCondition(TypePredicatesDefinition <TReferenceType> .AreNotNested());
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
 public TRuleTypeShouldConjunction DoNotHaveMemberWithName(string name)
 {
     _ruleCreator.ContinueComplexCondition(
         TypePredicatesDefinition <TReferenceType> .DoNotHaveMethodMemberWithName(name));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Esempio n. 14
0
 public TGivenRuleTypeConjunction AreAssignableTo(Type firstType, params Type[] moreTypes)
 {
     _ruleCreator.AddPredicate(TypePredicatesDefinition <TRuleType> .AreAssignableTo(firstType, moreTypes));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TRuleTypeShouldConjunction ImplementInterface(Type intf)
 {
     _ruleCreator.ContinueComplexCondition(
         TypePredicatesDefinition <TReferenceType> .ImplementInterface(intf));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Esempio n. 16
0
 public TGivenRuleTypeConjunction AreAssignableTo(IEnumerable <Type> types)
 {
     _ruleCreator.AddPredicate(TypePredicatesDefinition <TRuleType> .AreAssignableTo(types));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
Esempio n. 17
0
 public TGivenRuleTypeConjunction AreNotAssignableTo(IObjectProvider <IType> types)
 {
     _ruleCreator.AddPredicate(TypePredicatesDefinition <TRuleType> .AreNotAssignableTo(types));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
Esempio n. 18
0
 public TGivenRuleTypeConjunction ImplementInterface(Type intf)
 {
     _ruleCreator.AddPredicate(
         TypePredicatesDefinition <TRuleType> .ImplementInterface(intf));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TRuleTypeShouldConjunction DoNotResideInAssembly(string pattern, bool useRegularExpressions = false)
 {
     _ruleCreator.ContinueComplexCondition(
         TypePredicatesDefinition <TReferenceType> .DoNotResideInAssembly(pattern, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }