Example #1
0
        public void GetSearchEngineWinner_ReturnsWinnerBySearchEngine(string expectedQuery, string searchEngine, IEnumerable <SearchResult> searchResults)
        {
            string result = _searchFightDomainService.GetSearchEngineWinner(searchEngine, searchResults);

            Assert.Equal(expectedQuery, result);
        }
 private IEnumerable <SearchResult> GetWinnersBySearchEngine(IEnumerable <SearchResult> searchResults)
 {
     return(_searchEngineServices
            .Select(searchEngine => new SearchResult(searchEngine.Name, _searchFightDomainService.GetSearchEngineWinner(searchEngine.Name, searchResults))));
 }