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