Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
        public void GetSearchEngineWinners_Null_Terms_ArgumentException()
        {
            List <Search> searchData = null;

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