public VisualMenu(SpaceParkCorp spacePark, string[] menuOptions)
 {
     this.spacePark   = spacePark;
     this.spaceships  = Spaceship.GetSpaceShipsAsync().Result;
     this.menuOptions = menuOptions;
     this.EventLog    = new List <string>();
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            string[]      menuOptions = { "check in", "pay", "check out" };
            SpaceParkCorp spacePark   = new SpaceParkCorp(new BankAccountComponent(), new ParkingService(4));
            VisualMenu    menu        = new VisualMenu(spacePark, menuOptions);

            menu.Start();
        }