/// <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. }
/// <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--; }
public void Run(IInventoryItem item, IShelfLifeMaintenance qualityMaintainer) { }