예제 #1
0
 public void Fill(IWarehouse2 warehouse)
 {
     if (warehouse.HasInventory(ProductName, Quantity))
     {
         warehouse.Remove(ProductName, Quantity);
         IsFilled = true;
     }
 }
예제 #2
0
 public void Fill(IWarehouse2 warehouse)
 {
     if (warehouse.HasInventory(ProductName, Quantity))
     {
         warehouse.Remove(ProductName, Quantity);
         IsFilled = true;
     }
 }