public async Task TestMethodFetchCategories()
        {
            // Act
            var categories = await _categoriesService.FetchCategories();

            // Assert
            Assert.IsTrue(categories.Count > 0);
        }
        public async Task TestMethodGetProductsByCategoryId()
        {
            // Act
            var products = await _productsService.FetchProducts();

            var categories = await _categoriesService.FetchCategories();

            var filter = Util.GetProductsByCategoryId(products, categories[0].Id);

            // Assert
            Assert.IsNotNull(filter);
        }
 /// Obter todas as categorias da api
 private async Task <List <Category> > FetchCategories()
 => await _mCategoriesService.FetchCategories();