public void SqlCategoryRepositoryAddNewCategoryWithNameCoding()
 {
     var category = new Category
                        {
                            CategoryName = "Coding"
                        };
     var add = _categoryRepository.Add(category);
     Assert.IsTrue(add);
 }
Esempio n. 2
0
 public void CategoryServiceAddCategoryWithNameServiceTest()
 {
     var category = new Category
                        {
                            CategoryName = "ServiceTest"
                        };
     var add = _categoryService.Add(category);
     Assert.IsTrue(add);
 }
Esempio n. 3
0
 public bool Delete(Category category)
 {
     return _repository.Delete(category);
 }
Esempio n. 4
0
 public bool Add(Category category)
 {
     return _repository.Add(category);
 }