static void Main(string[] args) { System.Console.WriteLine("OMGHAI!"); IList<Item> Items = new List<Item> { new Item {Name = "+5 Dexterity Vest", SellIn = 10, Quality = 20}, new Item {Name = "Aged Brie", SellIn = 2, Quality = 0}, new Item {Name = "Elixir of the Mongoose", SellIn = 5, Quality = 7}, new Item {Name = "Sulfuras, Hand of Ragnaros", SellIn = 0, Quality = 80}, new Item { Name = "Backstage passes to a TAFKAL80ETC concert", SellIn = 15, Quality = 20 }, new Item {Name = "Conjured Mana Cake", SellIn = 3, Quality = 6} }; Inventory inventory = new Inventory(Items); for (int i = 0; i < 20; i++) { inventory.updateQuality(); } System.Console.ReadKey(); }
public void setUp() { store = new Inventory(); store.Items = new List<Item>(); }
public void setUp() { store = new Inventory(); store.Items = new List<Item>(); agedBrie = new Item { Name = "Aged Brie", SellIn = 0, Quality = oldQuality }; }
public void SetUp() { Store = new Inventory(){ Items = new List<Item> { new Item {Name = "+5 Dexterity Vest", SellIn = 10, Quality = 20}, new Item {Name = "Aged Brie", SellIn = 2, Quality = 0}, new Item {Name = "Elixir of the Mongoose", SellIn = 5, Quality = 7}, new Item {Name = "Sulfuras, Hand of Ragnaros", SellIn = 0, Quality = 80}, new Item { Name = "Backstage passes to a TAFKAL80ETC concert", SellIn = 15, Quality = 20 }, new Item {Name = "Conjured Mana Cake", SellIn = 3, Quality = 6} } }; oldBoots = new Item {Name = "Boot", SellIn = bootSellIn, Quality = bootQuality}; overdueMustardYoghurt = new Item {Name = "Mustard-Yoghurt", SellIn = 0, Quality = overdueMustardYoghurtQuality}; }
public void Setup() { Items = new List<Item> { new Item {Name = "+5 Dexterity Vest", SellIn = 10, Quality = 20}, new Item {Name = "Aged Brie", SellIn = 2, Quality = 0}, new Item {Name = "Elixir of the Mongoose", SellIn = 5, Quality = 7}, new Item {Name = "Sulfuras, Hand of Ragnaros", SellIn = 0, Quality = 80}, new Item { Name = "Backstage passes to a TAFKAL80ETC concert", SellIn = 15, Quality = 20 }, new Item {Name = "Conjured Mana Cake", SellIn = 3, Quality = 6} }; inventory = new Inventory(Items); }