示例#1
0
        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");
        }
示例#2
0
 public ProductCategory()
 {
     InitializeComponent();
     controller = new Controller.CategoryController();
 }