/// <summary> /// Initializes a new instance of the <see cref="CitySearchEngine" /> class /// </summary> /// <param name="searchDataRepository">The search data repository</param> /// <param name="indexedSearchDataRepository">The indexed data repository</param> /// <param name="queryScorer">The query scorer</param> /// <param name="locationScorer">The location scorer</param> public CitySearchEngine( ISearchDataRepository searchDataRepository, IIndexedSearchDataRepository indexedSearchDataRepository, IScorer <string> queryScorer, IScorer <LocationInformation> locationScorer) { this.searchDataRepository = searchDataRepository; this.indexedSearchDataRepository = indexedSearchDataRepository; this.queryScorer = queryScorer; this.locationScorer = locationScorer; }
public SearchPresenter(ISearchView view) : base(view) { View.ViewLoading += View_ViewLoding; View.SearchInDocument += View_SearchInDocument; View.SaveSearchData += View_SaveSearchData; View.OnInit += View_OnInit; wordService = WordService.Instance; searchDataRepository = SearchDataXmlRepository.Instance; this.searchData = searchDataRepository.GetSearchData(); }