static void CustomPizzaToppings(List <Topping> toppings, Startup startup1)
        {
            bool canExit = false;

            do
            {
                System.Console.WriteLine("Select Topping");
                System.Console.WriteLine("1. Pepperoni");
                System.Console.WriteLine("2. Sausage");
                System.Console.WriteLine("3. Green Peppers");
                System.Console.WriteLine("4. Jalepeno");
                System.Console.WriteLine("5. Pinapple");
                System.Console.WriteLine("6. Olives");
                System.Console.WriteLine("7. Review Toppings");
                System.Console.WriteLine("8. Reset Toppings");
                System.Console.WriteLine("9. Break");

                int select = 0;
                int.TryParse(Console.ReadLine(), out select);


                switch (select)
                {
                case 1:
                    startup1.AddToppings(toppings, new Topping("Pepperoni"));
                    break;

                case 2:
                    startup1.AddToppings(toppings, new Topping("Sausage"));
                    break;

                case 3:
                    startup1.AddToppings(toppings, new Topping("Green Peppers"));
                    break;

                case 4:
                    startup1.AddToppings(toppings, new Topping("Jalepeno"));
                    break;

                case 5:
                    startup1.AddToppings(toppings, new Topping("Pinapple"));
                    break;

                case 6:
                    startup1.AddToppings(toppings, new Topping("Olives"));
                    break;

                case 7:
                    System.Console.WriteLine("Reviewing toppings");
                    foreach (Topping t in toppings)
                    {
                        System.Console.WriteLine($" {t.Name}");
                    }
                    break;

                case 8:
                    System.Console.WriteLine("Resetting toppings");
                    toppings.Clear();
                    break;

                case 9:
                    if (toppings.Count >= 2)
                    {
                        canExit = true;
                    }
                    else
                    {
                        System.Console.WriteLine("Need at least 2 toppings");
                    }
                    break;
                }
                if (toppings.Count == 5)
                {
                    canExit = true;
                }
            }while(!canExit);
        }
        static void Menu(Order order)
        {
            if (order is null)
            {
                throw new ArgumentNullException(nameof(order));
            }

            //Startup su = new Startup();

            int  numPizzas = 0;
            bool exit      = false;
            var  startup   = new Startup();

            // Plan:
            // Ask for size
            // Ask for crust
            // Ask for toppings on at a time.

            do
            {
                //Select Toppings
                List <Topping> toppings = new List <Topping>();

                System.Console.WriteLine("Select Toppings");
                System.Console.WriteLine("Select 1 for Cheese Pizza");
                System.Console.WriteLine("Select 2 for Pepperoni Pizza");
                System.Console.WriteLine("Select 3 for Sausage Pizza");
                System.Console.WriteLine("Select 4 for Vegetarian Pizza");
                System.Console.WriteLine("Select 5 for Supreme Pizza");
                System.Console.WriteLine("Select 6 for Custom Pizza");
                System.Console.WriteLine("Select 7 to see cart");
                System.Console.WriteLine("Select 8 for Exit Pizza");
                System.Console.WriteLine("Select 9 to read pizza file");
                System.Console.WriteLine();

                int select = 0;
                int.TryParse(Console.ReadLine(), out select);

                switch (select)
                {
                case 1:
                    //var p = startup.CreatePizza("L","Stuffed", new List<string>{"Cheese"});
                    //cart.Add(p);
                    //toppings.Add(new Topping("Cheese"));
                    su.AddToppings(toppings, new Topping("Cheese"));
                    System.Console.WriteLine("Added Cheese Pizza");
                    break;

                case 2:
                    //toppings.Add(new Topping("Pepperoni"));
                    su.AddToppings(toppings, new Topping("Pepperoni"));
                    System.Console.WriteLine("Added Pepperoni Pizza");
                    break;

                case 3:
                    //toppings.Add(new Topping("Sausage"));
                    su.AddToppings(toppings, new Topping("Sausage"));
                    System.Console.WriteLine("Added Sausage Pizza");
                    break;

                case 4:
                    //toppings.Add(new Topping("Tomato"));
                    //toppings.Add(new Topping("Olive"));
                    su.AddToppings(toppings, new Topping("Tomato"));
                    su.AddToppings(toppings, new Topping("Olive"));
                    System.Console.WriteLine("Added Vegetarian Pizza");
                    break;

                case 5:
                    //toppings.Add(new Topping("Pepperoni"));
                    //toppings.Add(new Topping("Sausage"));
                    //toppings.Add(new Topping("Green Pepper"));
                    //toppings.Add(new Topping("Onion"));
                    su.AddToppings(toppings, new Topping("Pepperoni"));
                    su.AddToppings(toppings, new Topping("Sausage"));
                    su.AddToppings(toppings, new Topping("Green Pepper"));
                    su.AddToppings(toppings, new Topping("Onion"));
                    //order.CreatePizza("L","Stuffed", new List<string>{"Pepperoni","Sausage","Green Peppers","Onions"});
                    System.Console.WriteLine("Added Supreme Pizza");
                    break;

                case 6:
                    //order.CreatePizza("L","Stuffed", new List<string>{"Custom"});
                    //toppings.Add(new Topping("cheese"));
                    //System.Console.WriteLine("Added Custom Pizza: To be implemented");
                    CustomPizzaToppings(toppings, su);
                    break;

                case 7:
                    Console.WriteLine(order.ShowCart());
                    break;

                default:
                    exit = true;
                    break;
                }
                System.Console.WriteLine("");
                if (select > 6)
                {
                    continue;
                }

                //Select Crust
                System.Console.WriteLine("Select Crust");
                System.Console.WriteLine("Select 1 for Pan");
                System.Console.WriteLine("Select 2 for Thin-Crust");
                System.Console.WriteLine("Select 3 for Stuffed");
                Crust crust = new Crust();
                select = 0;
                int.TryParse(Console.ReadLine(), out select);
                switch (select)
                {
                case 1:
                    crust.Name = "Pan";
                    break;

                case 2:
                    crust.Name = "Thin-Crust";
                    break;

                case 3:
                    crust.Name = "Stuffed";
                    break;

                default:
                    crust.Name = "Pan";
                    break;
                }
                System.Console.WriteLine("");

                //Select Size
                System.Console.WriteLine("Select Size");
                System.Console.WriteLine("Select 1 for Small");
                System.Console.WriteLine("Select 2 for Medium");
                System.Console.WriteLine("Select 3 for Large");
                Size size = new Size();
                select = 0;
                int.TryParse(Console.ReadLine(), out select);
                switch (select)
                {
                case 1:
                    size.Name  = "S";
                    size.Value = 6;
                    break;

                case 2:
                    size.Name  = "M";
                    size.Value = 10;
                    break;

                case 3:
                    size.Name  = "L";
                    size.Value = 12;
                    break;

                default:
                    crust.Name = "L";
                    size.Value = 12;
                    break;
                }
                System.Console.WriteLine("");

                order.addPizza(startup.createPizza(crust, size, toppings));
                numPizzas++;
            }while(!exit);
            System.Console.WriteLine($"Thank you for ordering {numPizzas} pizzas");
            Console.WriteLine(order.ShowCart());
        }