コード例 #1
0
 /// <summary>
 /// Runs the algorithm
 /// </summary>
 /// <param name="item">The item to be maintained</param>
 /// <param name="shelfLifeMaintainer">The object to be maintained</param>
 public void Run(IInventoryItem item, IShelfLifeMaintenance shelfLifeMaintainer)
 {
     // We don't do anything, because the value needs to remain stable.
 }
コード例 #2
0
 /// <summary>
 /// Runs the algorithm
 /// </summary>
 /// <param name="item">The item to be maintained</param>
 /// <param name="shelfLifeMaintainer">The item to be maintained</param>
 public void Run(IInventoryItem item, IShelfLifeMaintenance shelfLifeMaintainer)
 {
     shelfLifeMaintainer.SellIn--;
 }
コード例 #3
0
 public void Run(IInventoryItem item, IShelfLifeMaintenance qualityMaintainer)
 {
 }