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 Post(Category category) { var post = new FITlosophiOperations(); post.AddNewCategory(category); }
public void AddNewCategory(Category category) { var create = new Create(); create.AddNewCategory(category); }