Пример #1
0
        public static async Task StartAsync(IList <string> terms)
        {
            ContainerSearch searchDataContainer = await SearchManager.GetSearchEngineResults(terms);

            Reports.AddRange(ReportManager.PrintSearchResults(searchDataContainer));

            List <EngineTermWinner> SearchEngineWinners = WinnerManager.GetEngineWinners(searchDataContainer);

            Reports.AddRange(ReportManager.PrintWinners(SearchEngineWinners));

            EngineTermWinner totalwinner = WinnerManager.GetTotalWinner(searchDataContainer);

            Reports.Add(ReportManager.PrintTotalWinner(totalwinner));
        }
Пример #2
0
        public void GetTotalWinner_Null_ArgumentException()
        {
            ContainerSearch containerSearch = null;

            Assert.Throws <ArgumentException>(() => _winnerManager.GetTotalWinner(containerSearch));
        }