public IPersonSearchService SearchIdentificationExp(string nameOfStrategy, PersonIdentification personIdentification, bool isAndClause = true) { IPersonExpSearchStrategy <PersonIdentification> personExpSearchStrategy = _personIdentificationExpSearchStrategyFactory[nameOfStrategy]; _personExpression = personExpSearchStrategy.Run(_personExpression, personIdentification, isAndClause); return(this); }
public IPersonSearchService SearchNameExp(string nameOfStrategy, PersonName personName, bool isAndClause = true) { IPersonExpSearchStrategy <PersonName> personExpSearchStrategy = _personNameExpSearchStrategyFactory[nameOfStrategy]; _personExpression = personExpSearchStrategy.Run(_personExpression, personName, isAndClause); return(this); }