Exemple #1
0
        public void TestSubCategoryFakeNotEmpty()
        {
            var stocklistService = new StocklistInMemoryService();
            var subCategory      = new SubCategory();

            subCategory.Name = "Fake subcategory";
            var result = stocklistService.GetProductListBySub(subCategory.Name).Result;

            Assert.Empty(result);
        }
Exemple #2
0
        public void TestSubCategoryColdSaucesNotEmpty()
        {
            var stocklistService = new StocklistInMemoryService();
            var subCategory      = new SubCategory();

            subCategory.Name = "Cold sauces";
            var result = stocklistService.GetProductListBySub(subCategory.Name).Result;

            Assert.NotEmpty(result);
        }