public TRuleTypeShouldConjunction NotBeDeclaredIn(IEnumerable <string> patterns, bool useRegularExpressions = false) { _ruleCreator.AddCondition( MemberConditionsDefinition <TRuleType> .NotBeDeclaredIn(patterns, useRegularExpressions)); return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator)); }
public TRuleTypeShouldConjunction NotBeDeclaredIn(IType firstType, params IType[] moreTypes) { _ruleCreator.AddCondition(MemberConditionsDefinition <TRuleType> .NotBeDeclaredIn(firstType, moreTypes)); return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator)); }
//Relation Conditions public ShouldRelateToTypesThat <TRuleTypeShouldConjunction, IType, TRuleType> BeDeclaredInTypesThat() { _ruleCreator.BeginComplexCondition(ArchRuleDefinition.Types(), MemberConditionsDefinition <TRuleType> .BeDeclaredInTypesThat()); return(new ShouldRelateToTypesThat <TRuleTypeShouldConjunction, IType, TRuleType>(_ruleCreator)); }
public TRuleTypeShouldConjunction BeDeclaredIn(IEnumerable <Type> types) { _ruleCreator.AddCondition(MemberConditionsDefinition <TRuleType> .BeDeclaredIn(types)); return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator)); }
public TRuleTypeShouldConjunction BeDeclaredIn(IObjectProvider <IType> types) { _ruleCreator.AddCondition(MemberConditionsDefinition <TRuleType> .BeDeclaredIn(types)); return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator)); }
public TRuleTypeShouldConjunction BeDeclaredIn(string pattern, bool useRegularExpressions = false) { _ruleCreator.AddCondition( MemberConditionsDefinition <TRuleType> .BeDeclaredIn(pattern, useRegularExpressions)); return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator)); }