public void UpdateQuality() { foreach (var item in Items.Select(item => RetailItemFactory.Create(item))) { item.Update(); } }
public void UpdateQuality(IList <Item> Items) { for (var i = 0; i < Items.Count; i++) { var item = Items[i]; var retailItem = RetailItemFactory.CreateRetailItem(item); retailItem.UpdateQuality(); } }