public static async Task ExecuteSearchFight(IList<string> terms) { var searchData = await SearchManager.GetSearchResults(terms); var searchEngineWinners = WinnerManager.GetSearchEngineWinners(searchData); var grandWinner = WinnerManager.GetGrandWinner(searchData); Reports.AddRange(ReportManager.GetSearchResultsReport(searchData)); Reports.AddRange(ReportManager.GetWinnersReport(searchEngineWinners)); Reports.Add(ReportManager.GetGrandWinnerReport(grandWinner)); }
public void GetGrandWinner_Null_Terms_ArgumentException() { List <Search> searchData = null; Assert.Throws <ArgumentException>(() => _winnerManager.GetGrandWinner(searchData)); }