コード例 #1
0
        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);
        }
コード例 #2
0
        public void Post(Category category)
        {
            var post = new FITlosophiOperations();

            post.AddNewCategory(category);
        }
コード例 #3
0
        public void AddNewCategory(Category category)
        {
            var create = new Create();

            create.AddNewCategory(category);
        }