Beispiel #1
0
        public async Task ExecuteReturnsResultsForSpecificQuery()
        {
            var query  = new AutoCompleteServicePackageIdsQuery(GetConfiguration());
            var result = await query.Execute("jquery", false);

            Assert.Contains("jquery", result, StringComparer.OrdinalIgnoreCase);
        }
Beispiel #2
0
        public async Task ExecuteReturns30ResultsForNullQuery()
        {
            var query  = new AutoCompleteServicePackageIdsQuery(GetConfiguration());
            var result = await query.Execute(null, false);

            Assert.True(result.Count() == 30);
        }