/// <summary> /// Constructor /// </summary> public GoogleSearchService() { _searcher = new GoogleSearcher(); _parser = new GoogleParser(); }
/// <summary> /// Constructor passing in the search and parse services, primarily for unit testing purposes /// </summary> /// <param name="searcher"></param> /// <param name="parser"></param> public GoogleSearchService(ISearchEngineSearcher searcher, ISearchResultParser parser) { _searcher = searcher; _parser = parser; }
public OnlineSearchAssistant(ISearchStrategyFactory searchStrategyFactory, ISearchResultParser searchResultParser) { this.searchStrategyFactory = searchStrategyFactory; this.searchResultParser = searchResultParser; }