Exemplo n.º 1
0
        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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 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();
        }