public TRuleTypeShouldConjunction HaveNameContaining(string pattern) { _ruleCreator.ContinueComplexCondition( ObjectPredicatesDefinition <TReferenceType> .HaveNameContaining(pattern)); return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator)); }
public TGivenRuleTypeConjunction HaveNameContaining(string pattern) { _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .HaveNameContaining(pattern)); return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator)); }