예제 #1
0
파일: Program.cs 프로젝트: dwperez74/vend
        static void Main(string[] args)
        {
            Dictionary <string, Products> itemsDictionary = ProductLoader.getData(@"..\..\..\..\vendingmachine.csv");
            VendingMachine vendingMachine = new VendingMachine(itemsDictionary);
            MainMenu       mainMenu       = new MainMenu(vendingMachine);

            mainMenu.Show();
        }
예제 #2
0
        static void Main(string[] args)
        {
            string        filePath      = @"C:\Users\Student\GIT\c-module-1-capstone-team-4\19_Capstone\vendingmachine.csv";
            ProductLoader productLoader = new ProductLoader(filePath);
            Machine       machine       = new Machine(productLoader.ProductList);
            Menu          menu          = new Menu(machine);

            menu.Show();
        }
예제 #3
0
        static void Main(string[] args)
        {
            List <VendingItem> inventory = new List <VendingItem>();

// Product loader pulls the data from the loading file.
            inventory = ProductLoader.Loader();
            // Initializes "Vending Machine" and "Money Manager"
            VendingMachine vendingMachine = new VendingMachine(inventory);
            MoneyManager   moneyManager   = new MoneyManager();

            // Loads Main Menu to start user experience.
            MainMenu menu = new MainMenu(vendingMachine, moneyManager);

            menu.Run();
        }