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);
 }