Exemple #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));
        }
Exemple #2
0
        public void GetEngineWinners_Null_ArgumentException()
        {
            ContainerSearch containerSearch = null;

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