Exemple #1
0
 public void UpdateQuality()
 {
     foreach (var item in Items.Select(item => RetailItemFactory.Create(item)))
     {
         item.Update();
     }
 }
Exemple #2
0
        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();
            }
        }