public void GetChangedProductRowIndexTest()
 {
     _ShopListPresentationModel.GetCurrentProduce("1", 0, "主機板");
     _ShopListPresentationModel.AddItemToCart();
     _ShopListPresentationModel.GetCurrentProduce("1", 1, "主機板");
     _ShopListPresentationModel.AddItemToCart();
     Assert.AreEqual(_ShopListPresentationModel.GetChangedProductRowIndex(), 0);
     _productManagement.EditProductName(_productManagement.AllProducts[1], "name");
     Assert.AreEqual(_ShopListPresentationModel.GetChangedProductRowIndex(), 1);
 }
Beispiel #2
0
 // 取得購物車內有被修改過商品的rowIndex
 private int GetChangedProductRowIndex()
 {
     return(_shopListPresentationModel.GetChangedProductRowIndex());
 }