public void GetCategoriesTest() { int expected = 54; int actual; List <ProductCategory> categories = CategoryCore.GetCategories(); actual = categories.Count; Assert.AreEqual(expected, actual); }
public void CategoryCoreConstructorTest() { CategoryCore target = new CategoryCore(); }
public ProductCategory UpdateCategory(ProductCategory category) { return(CategoryCore.UpdateCategory(category)); }
public bool RemoveCategory(int categoryID) { return(CategoryCore.RemoveCategory(categoryID)); }
public int AddCategory(ProductCategory category) { return(CategoryCore.AddCategory(category)); }
public List <ProductCategory> CategoriesList() { return(CategoryCore.CategoriesList()); }
public ProductCategory GetCategory(int categoryID) { return(CategoryCore.GetCategory(categoryID)); }