Exemple #1
0
        public async Task GetFakeBasketTest()
        {
            var catalogMockService = new CatalogMockService();
            var result             = await catalogMockService.GetCatalogAsync();

            Assert.NotEmpty(result);
        }
        public async Task GetFakeCatalogTest()
        {
            var catalogMockService = new CatalogMockService();
            var catalog            = await catalogMockService.GetCatalogAsync();

            Assert.NotEqual(0, catalog.Count);
        }
        public async Task GetFakeCatalogTest()
        {
            var catalogMockService = new CatalogMockService();
            var catalog            = await catalogMockService.GetCatalogAsync();

            Assert.NotEmpty(catalog);
        }
        public async Task <IEnumerable <CatalogItem> > GetCatalogAsync()
        {
            var products = await _catalogService.GetCatalogAsync();

            return(products);
        }