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