示例#1
0
文件: Inventory.cs 项目: Cdrix/SM
 /// <summary>
 /// Check if a this inventory has Stale product
 /// Stale is a product that is not in any order and is still in inventory
 /// </summary>
 /// <param name="dispatch1"></param>
 internal void CheckIfStaleInvetory(Dispatch dispatch1)
 {
     for (int i = 0; i < _inventItems.Count; i++)
     {
         if (!dispatch1.DoYouHaveAtLeastAnOrderWithMyProduct(_inventItems[i].Key))
         {
             RemoveItem(_inventItems[i].Key);
         }
     }
 }