public void GetCategoryDropDownList()
        {
            List <SelectListItem> categories = new List <SelectListItem>();

            categories = dropdownrepo.GetCategoryDropDownList();
            var categoryCount = Readrepo.GetAllCategories().Count();

            Assert.AreEqual(categoryCount, categories.Count);
        }
        public void AddNewCategory()
        {
            Category newCategory = new Category();

            newCategory.CategoryName = "Organic";

            Createrepo.AddNewCategory(newCategory);

            var result = Readrepo.GetAllCategories();

            Assert.AreEqual("Organic", result.Where(m => m.CategoryID == 7).FirstOrDefault(x => x.CategoryName == "Organic").CategoryName);
        }
        public void GetAllCategories()
        {
            List <Category> categories = Readrepo.GetAllCategories();

            Assert.AreEqual(1, categories.FirstOrDefault(m => m.CategoryID == 1).CategoryID);
        }