mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 15:01:28 +00:00
25 lines
499 B
C#
25 lines
499 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.InteropServices.WindowsRuntime;
|
|
|
|
namespace csharp
|
|
{
|
|
internal class GildedRose
|
|
{
|
|
private List<IItem> Items;
|
|
public GildedRose(List<IItem> items)
|
|
{
|
|
this.Items = items;
|
|
}
|
|
|
|
public void UpdateQuality()
|
|
{
|
|
foreach (Item item in Items)
|
|
{
|
|
item.PassingDay();
|
|
}
|
|
}
|
|
}
|
|
}
|