Example #1
0
 public TGivenRuleTypeConjunction AreNotAssignableTo(IEnumerable <string> patterns,
                                                     bool useRegularExpressions = false)
 {
     _ruleCreator.AddPredicate(
         TypePredicatesDefinition <TRuleType> .AreNotAssignableTo(patterns, useRegularExpressions));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TRuleTypeShouldConjunction AreNotAssignableTo(IEnumerable <string> patterns,
                                                      bool useRegularExpressions = false)
 {
     _ruleCreator.ContinueComplexCondition(
         TypePredicatesDefinition <TReferenceType> .AreNotAssignableTo(patterns, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Example #3
0
 public TGivenRuleTypeConjunction AreNotAssignableTo(IEnumerable <Type> types)
 {
     _ruleCreator.AddPredicate(TypePredicatesDefinition <TRuleType> .AreNotAssignableTo(types));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
Example #4
0
 public TGivenRuleTypeConjunction AreNotAssignableTo(Type firstType, params Type[] moreTypes)
 {
     _ruleCreator.AddPredicate(TypePredicatesDefinition <TRuleType> .AreNotAssignableTo(firstType, moreTypes));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TRuleTypeShouldConjunction AreNotAssignableTo(IEnumerable <Type> types)
 {
     _ruleCreator.ContinueComplexCondition(TypePredicatesDefinition <TReferenceType> .AreNotAssignableTo(types));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
 public TRuleTypeShouldConjunction AreNotAssignableTo(Type firstType, params Type[] moreTypes)
 {
     _ruleCreator.ContinueComplexCondition(
         TypePredicatesDefinition <TReferenceType> .AreNotAssignableTo(firstType, moreTypes));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }