Example #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public GoogleSearchService()
 {
     _searcher = new GoogleSearcher();
     _parser   = new GoogleParser();
 }
Example #2
0
 /// <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;
 }
Example #3
0
 public OnlineSearchAssistant(ISearchStrategyFactory searchStrategyFactory, ISearchResultParser searchResultParser)
 {
     this.searchStrategyFactory = searchStrategyFactory;
     this.searchResultParser    = searchResultParser;
 }