Example #1
0
        public void EditProduct()
        {
            Product product = new Product("P105", "X", 100, "Exits ForTests Only");

            handler.AddProductToDatabase(product);
            product.Name        = "lili";
            product.Description = "momo";
            product.BasePrice   = 110;
            handler.EditProductInDatabase(product);
            Product find = handler.GetProductID("P105");

            Assert.AreEqual("lili", find.Name);
            Assert.AreEqual("momo", find.Description);
            Assert.AreEqual(110, find.BasePrice);
        }