コード例 #1
0
ファイル: ShopList.cs プロジェクト: 106820026/Shopping_List
 // 提示庫存不足並且改回最大庫存
 private void NotifyOutOfStockAndChangeToMaximumStock(DataGridViewCellEventArgs e)
 {
     MessageBox.Show(OUT_OF_STOCK, STOCK_STATUS);
     _orderDataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = _shopListPresentationModel.ChangeToMaximumStock(e.RowIndex);
 }
コード例 #2
0
 public void ChangeToMaximumStockTest()
 {
     _ShopListPresentationModel.GetCurrentProduce("1", 0, "主機板");
     _ShopListPresentationModel.AddItemToCart();
     Assert.AreEqual(_ShopListPresentationModel.ChangeToMaximumStock(0), "5");
 }