Beispiel #1
0
        static void Main(string[] args)
        {
            VMStocker      stocker  = new VMStocker();
            List <Item>    items    = stocker.GetStock();
            VendingMachine vm       = new VendingMachine(items);
            MainMenuCLI    mainMenu = new MainMenuCLI(vm);

            mainMenu.Display();
        }
        /// <summary>
        /// Runs the Last Resort Vending Program
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            VendingMachineFileReader  vmfr  = new VendingMachineFileReader();
            List <VendingMachineItem> stock = vmfr.ReadFile();
            VendingMachine            vm    = new VendingMachine(stock);

            MainMenuCLI mainMenu = new MainMenuCLI(vm);

            mainMenu.Display();
        }