public void AddKartMethodPound()
        {
            int             expected = 3;
            Kart            addKart  = new Kart();
            List <KartItem> numbers  = addKart.PutItemInKart("mingt", expected, 4.45);
            int             actual   = numbers[0].Pound;

            Assert.Equal(expected, actual);
        }
        public void AddToKartMethodCost()
        {
            double          expected = 34.56;
            Kart            addKart  = new Kart();
            List <KartItem> cost     = addKart.PutItemInKart("fdsf", 5, expected);
            double          actual   = cost[0].Cost;

            Assert.Equal(expected, actual);
        }
        public void VisibleKartItem()
        {
            Kart            oneKart  = new Kart();
            var             expected = oneKart.GetKart();
            Kart            kart     = new Kart();
            List <KartItem> all      = kart.GetKart();
            var             actual   = all;

            Assert.Equal(expected, actual);
        }
        public void AddToKartMethodItem()
        {
            //Arrange
            string expected = "fdfdfsds";

            //Act
            Kart            addKart = new Kart();
            List <KartItem> items   = addKart.PutItemInKart(expected, 3, 4.5);
            string          actual  = items[0].Item;

            //Assert
            Assert.Equal(expected, actual);
        }
        public static string BuyOneGetOneFree(KartItem product)
        {
            Kart kart = new Kart();

            foreach (var item in kart.GetKart())
            {
                if (product == item)
                {
                    for (int i = 0; i < item.Cost; i++)
                    {
                    }

                    return("Your get one buy one credit applied today ! ");
                }
            }
            return("There is no discount for your item at this time");
        }
        public static void Main()
        {
            Console.WriteLine("Welcome to Andres Grocery Experience. Would you like to shop here ?");

            bool proceed = true;

            while (proceed)
            {
                Console.WriteLine("Welcome to Andres Grocery Experience. Please select a number from the menu? If");
                string choice   = MainMenuView.MainMenu();
                bool   go       = true;
                Kart   kart     = new Kart();
                bool   exitFlag = false;
                while (go)
                {
                    if (choice == "1")
                    {
                        Console.WriteLine();
                        Console.WriteLine("Pick item to place in kart");
                        foreach (var item in AllGroceryProductList.GroceryProduce())
                        {
                            Console.WriteLine(item);
                        }
                        Console.WriteLine("Enter Item");
                        var inputItem = Console.ReadLine();
                        Console.WriteLine("Enter Pounds");
                        int inputPound = int.Parse(Console.ReadLine());
                        Console.WriteLine("Enter Price");
                        double inputCost = double.Parse(Console.ReadLine());
                        kart.PutItemInKart(inputItem, inputPound, inputCost);
                        Console.WriteLine("your item in the kart");
                        foreach (var item in kart.GetKart())
                        {
                            Console.WriteLine(item.Item);
                        }
                        break;
                    }
                    else if (choice == "2")
                    {
                        Console.WriteLine();
                        Console.WriteLine("Pick item to place in kart");
                        foreach (var item in AllGroceryProductList.GroceryMeat())
                        {
                            Console.WriteLine(item);
                        }
                        Console.WriteLine("Enter Item");
                        var inputItem = Console.ReadLine();
                        Console.WriteLine("Enter Pounds");
                        int inputPound = int.Parse(Console.ReadLine());
                        Console.WriteLine("Enter Price");
                        double inputCost = double.Parse(Console.ReadLine());
                        kart.PutItemInKart(inputItem, inputPound, inputCost);
                        Console.WriteLine("your item in the kart");
                        foreach (var item in kart.GetKart())
                        {
                            Console.WriteLine(item.Item);
                        }
                        break;
                    }
                    else if (choice == "3")
                    {
                        Console.WriteLine();
                        Console.WriteLine("Pick item to place in kart");
                        foreach (var item in AllGroceryProductList.GroceryDrink())
                        {
                            Console.WriteLine(item);
                        }
                        Console.WriteLine("Enter Item");
                        var inputItem = Console.ReadLine();
                        Console.WriteLine("Enter Pounds");
                        int inputPound = int.Parse(Console.ReadLine());
                        Console.WriteLine("Enter Price");
                        double inputCost = double.Parse(Console.ReadLine());
                        kart.PutItemInKart(inputItem, inputPound, inputCost);
                        Console.WriteLine("your item in the kart");
                        foreach (var item in kart.GetKart())
                        {
                            Console.WriteLine(item.Item);
                        }
                        break;
                    }
                    else if (choice == "n")
                    {
                        exitFlag = true;
                        break;
                    }
                }
                if (exitFlag)
                {
                    break;
                }
            }//ends progrom
            Console.WriteLine("Thanks for shopping with Andre's ! Enjoy your products");
        }