Пример #1
0
 public TRuleTypeShouldConjunction Be(ICanBeAnalyzed firstObject, params ICanBeAnalyzed[] moreObjects)
 {
     _ruleCreator.AddCondition(ObjectConditionsDefinition <TRuleType> .Be(firstObject, moreObjects));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Пример #2
0
 public TRuleTypeShouldConjunction Be(IObjectProvider <ICanBeAnalyzed> objects)
 {
     _ruleCreator.AddCondition(ObjectConditionsDefinition <TRuleType> .Be(objects));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Пример #3
0
 public TRuleTypeShouldConjunction Be(IEnumerable <string> patterns, bool useRegularExpressions = false)
 {
     _ruleCreator.AddCondition(
         ObjectConditionsDefinition <TRuleType> .Be(patterns, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }