public void UpdateProductQuantityTest()
 {
     _ShopListPresentationModel.GetCurrentProduce("1", 0, "主機板");
     _ShopListPresentationModel.AddItemToCart();
     Assert.AreEqual(_ShopListPresentationModel.GetSubtotal(2, 0), 13980);
     _ShopListPresentationModel.UpdateProductQuantity();
     Assert.AreEqual(_productManagement.AllProducts[0].ProductQuantity, 3.ToString());
 }
Beispiel #2
0
 // 更新商品資料
 private void UpdateData()
 {
     _shopListPresentationModel.UpdateProductQuantity();
 }