예제 #1
0
        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));
        }
예제 #2
0
        public void GetGrandWinner_Null_Terms_ArgumentException()
        {
            List <Search> searchData = null;

            Assert.Throws <ArgumentException>(() => _winnerManager.GetGrandWinner(searchData));
        }