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