コード例 #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();
 }