public void TestMethod1() { Controller.CategoryController ctrl = new Controller.CategoryController(new CategoryMockup()); List <Category> categories = ctrl.GetCategories().ToList(); Assert.AreEqual(categories.Count, 3); Assert.AreEqual(categories[1].Name, "Software"); }
public ProductCategory() { InitializeComponent(); controller = new Controller.CategoryController(); }