Beispiel #1
0
 public TGivenRuleTypeConjunction AreAssignableTo(IEnumerable <string> patterns,
                                                  bool useRegularExpressions = false)
 {
     _ruleCreator.AddPredicate(
         TypePredicatesDefinition <TRuleType> .AreAssignableTo(patterns, useRegularExpressions));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TRuleTypeShouldConjunction AreAssignableTo(IEnumerable <string> patterns,
                                                   bool useRegularExpressions = false)
 {
     _ruleCreator.ContinueComplexCondition(
         TypePredicatesDefinition <TReferenceType> .AreAssignableTo(patterns, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Beispiel #3
0
 public TGivenRuleTypeConjunction AreAssignableTo(IEnumerable <Type> types)
 {
     _ruleCreator.AddPredicate(TypePredicatesDefinition <TRuleType> .AreAssignableTo(types));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
Beispiel #4
0
 public TGivenRuleTypeConjunction AreAssignableTo(Type firstType, params Type[] moreTypes)
 {
     _ruleCreator.AddPredicate(TypePredicatesDefinition <TRuleType> .AreAssignableTo(firstType, moreTypes));
     return(Create <TGivenRuleTypeConjunction, 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));
 }