Beispiel #1
0
 public TRuleTypeShouldConjunction BeDeclaredIn(IEnumerable <Type> types)
 {
     _ruleCreator.AddCondition(MemberConditionsDefinition <TRuleType> .BeDeclaredIn(types));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Beispiel #2
0
 public TRuleTypeShouldConjunction BeDeclaredIn(Type firstType, params Type[] moreTypes)
 {
     _ruleCreator.AddCondition(MemberConditionsDefinition <TRuleType> .BeDeclaredIn(firstType, moreTypes));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Beispiel #3
0
 public TRuleTypeShouldConjunction BeDeclaredIn(IObjectProvider <IType> types)
 {
     _ruleCreator.AddCondition(MemberConditionsDefinition <TRuleType> .BeDeclaredIn(types));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Beispiel #4
0
 public TRuleTypeShouldConjunction BeDeclaredIn(IEnumerable <string> patterns, bool useRegularExpressions = false)
 {
     _ruleCreator.AddCondition(
         MemberConditionsDefinition <TRuleType> .BeDeclaredIn(patterns, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }