コード例 #1
0
 public TRuleTypeShouldConjunction NotBeDeclaredIn(IEnumerable <string> patterns,
                                                   bool useRegularExpressions = false)
 {
     _ruleCreator.AddCondition(
         MemberConditionsDefinition <TRuleType> .NotBeDeclaredIn(patterns, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
コード例 #2
0
 public TRuleTypeShouldConjunction NotBeDeclaredIn(IType firstType, params IType[] moreTypes)
 {
     _ruleCreator.AddCondition(MemberConditionsDefinition <TRuleType> .NotBeDeclaredIn(firstType, moreTypes));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
コード例 #3
0
        //Relation Conditions

        public ShouldRelateToTypesThat <TRuleTypeShouldConjunction, IType, TRuleType> BeDeclaredInTypesThat()
        {
            _ruleCreator.BeginComplexCondition(ArchRuleDefinition.Types(),
                                               MemberConditionsDefinition <TRuleType> .BeDeclaredInTypesThat());
            return(new ShouldRelateToTypesThat <TRuleTypeShouldConjunction, IType, TRuleType>(_ruleCreator));
        }
コード例 #4
0
 public TRuleTypeShouldConjunction BeDeclaredIn(IEnumerable <Type> types)
 {
     _ruleCreator.AddCondition(MemberConditionsDefinition <TRuleType> .BeDeclaredIn(types));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
コード例 #5
0
 public TRuleTypeShouldConjunction BeDeclaredIn(IObjectProvider <IType> types)
 {
     _ruleCreator.AddCondition(MemberConditionsDefinition <TRuleType> .BeDeclaredIn(types));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
コード例 #6
0
 public TRuleTypeShouldConjunction BeDeclaredIn(string pattern, bool useRegularExpressions = false)
 {
     _ruleCreator.AddCondition(
         MemberConditionsDefinition <TRuleType> .BeDeclaredIn(pattern, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }