public static async Task GetSearchTotalResults(IList <string> terms) { IList <SearchResultSchema> searchResults = await SearchService.GetSearchResultsByQuery(terms); IEnumerable <EngineWinnerSchema> engineWinners = ComputingService.GetWinnerBySearchTerm(searchResults); EngineWinnerSchema absoluteWinner = ComputingService.GetAbsoluteWinner(searchResults); #region Reports Results.AddRange(ReportingService.GetSearchResultsReport(searchResults)); Results.AddRange(ReportingService.GetWinnersByEngineReport(engineWinners)); Results.Add(ReportingService.GetAbsoluteWinnerReport(absoluteWinner)); #endregion }
public void GetAbsoluteWinner_Null_Results_Exception() { Assert.Throws <Exception>(() => _computingService.GetAbsoluteWinner(null)); }