static void Main(string[] args) { System.Console.WriteLine("OMGHAI!"); 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 } }; var diProvider = new DependencyInjectionProvider(); var gildedRoseManagementSystem = diProvider.Resolve <IGildedRoseManagementSystem>(); var updatedItems = gildedRoseManagementSystem.UpdateQuality(Items); System.Console.ReadKey(); }
public void Run() { Starting(); foreach (var directoryPath in Configuration.DirectoryPaths) { using var service = DependencyInjectionProvider.GetRequiredService <ICatalogLibraryService>(); var catalog = service.CreateLibraryCatalog(Configuration.ComputerName, directoryPath, _view); service.SaveLibraryCatalog(catalog, _view); } Closing(); }
public void Init() => DIProvider = DependencyInjectionProvider.Create().AddRepositories().Build();