static void Main(string[] args) { System.Console.WriteLine("OMGHAI!"); var app = new Program(); Inventory InnInventory = Inventory.CreateDefault(); System.Console.WriteLine("\n\nBefore\n"); InnInventory.ReconstructMe(); for (int iterations = 0; iterations < 10; iterations++) { System.Console.WriteLine("\n\nAfter (" + (iterations + 1) + ") iterations\n"); InnInventory.UpdateQuality(); InnInventory.ReconstructMe(); } System.Console.ReadKey(); }
static void Main(string[] args) { System.Console.WriteLine("OMGHAI!"); var app = new Inventory ( list: 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 } } ); app.UpdateQuality(); System.Console.ReadKey(); }
static void Main(string[] args) { System.Console.WriteLine("OMGHAI!"); var app = 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} } }; app.UpdateQuality(); System.Console.ReadKey(); }