Exemplo n.º 1
0
 public TRuleTypeShouldConjunction HaveAnyAttributes(IEnumerable <string> patterns,
                                                     bool useRegularExpressions = false)
 {
     _ruleCreator.AddCondition(
         ObjectConditionsDefinition <TRuleType> .HaveAnyAttributes(patterns, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Exemplo n.º 2
0
 public TRuleTypeShouldConjunction HaveAnyAttributes(IEnumerable <Type> attributes)
 {
     _ruleCreator.AddCondition(ObjectConditionsDefinition <TRuleType> .HaveAnyAttributes(attributes));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Exemplo n.º 3
0
 public TRuleTypeShouldConjunction HaveAnyAttributes(Type firstAttribute, params Type[] moreAttributes)
 {
     _ruleCreator.AddCondition(
         ObjectConditionsDefinition <TRuleType> .HaveAnyAttributes(firstAttribute, moreAttributes));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }