mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +00:00
20 lines
344 B
C#
20 lines
344 B
C#
using System.Collections.Generic;
|
|
|
|
namespace csharpcore
|
|
{
|
|
public class GildedRose
|
|
{
|
|
public GildedRose(List<Item> items)
|
|
{
|
|
Items = items;
|
|
}
|
|
|
|
public List<Item> Items { get; }
|
|
|
|
public void UpdateQuality()
|
|
{
|
|
Items.ForEach(x => x.UpdateQuality());
|
|
}
|
|
}
|
|
}
|