예제 #1
0
 public void UpdateQuality()
 {
     foreach (Item item in Items)
     {
         UpdateStrategyInterface strat = UpdateStrategyFactory.Create(item);
         strat.Update(item);
     }
 }
예제 #2
0
 public void UpdateQuality()
 {
     foreach (Item item in this.Items)
     {
         var updateStrategy = _strategyFactory.Create(item.Name);
         updateStrategy.UpdateQuality(item);
     }
 }