示例#1
0
        public async Task <List <Category> > GetCategoriesAsync()
        {
            string apiKey  = _configuration[Configurations.ApiKey];
            var    respose = await _catApiRepository.GetCategoriesAsync(apiKey);

            return(respose.Data);
        }
示例#2
0
        public async Task CategoriesListContainsItems()
        {
            var categories = await _catApiRepository.GetCategoriesAsync(_apiKey);

            Assert.IsTrue(categories.Data.Any());
        }