public void CafeMenuAddContentTest()
        {
            _cafeRepo.AddMenuItemToList(_cafeContent);

            int expected = 1;
            int actual   = _cafeRepo.GetMenuItems().Count;

            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
        private void SeedContentList()
        {
            CafeMenu hamburger       = new CafeMenu(1, "Hamburger", "A Classic Hamburger, can never go wrong with it!", "Bun, Hamburger Patty, Ketchup, Lettuce", 5.49d);
            CafeMenu hotDog          = new CafeMenu(2, "Hot Dog", "All American Hot Dog, perfect for Baseball Games!", "Bun, Hot Dog, Ketchup, Mustard, Relish", 4.50d);
            CafeMenu salad           = new CafeMenu(3, "Salad", "Healthy Option", "Lettuce, Onion, Tomato, Cheese, Ranch or Ceaser Salad", 7.35d);
            CafeMenu steakPotato     = new CafeMenu(4, "Steak and Potato", "Fancy Meal Cooked How You Want It", "Steak, Potato, Cheese", 12.34d);
            CafeMenu mangoSmoothie   = new CafeMenu(5, "Mango Smoothie", "Sweet and Cold and nice to drink on a hot summer day", "Ice, Mango, Sweetner", 3.12d);
            CafeMenu cokeDrink       = new CafeMenu(6, "Coke", "Coke", "Coke", 1.25d);
            CafeMenu chickenSandwich = new CafeMenu(7, "Chicken Sandwich", "Chicken Sandwich", "Chicken Sandwich", 5.68d);
            CafeMenu chickenStrips   = new CafeMenu(8, "Chicken Strips", "Chicken Strips", "Chicken Strpis", 5.30d);
            CafeMenu brisket         = new CafeMenu(9, "Brisket", "Brisket", "Brisket", 13.78d);
            CafeMenu pizza           = new CafeMenu(10, "Pizza", "Pizza", "Pizza Stuff", 14.55d);

            _listOfMenuItems.AddMenuItemToList(hamburger);
            _listOfMenuItems.AddMenuItemToList(hotDog);
            _listOfMenuItems.AddMenuItemToList(salad);
            _listOfMenuItems.AddMenuItemToList(steakPotato);
            _listOfMenuItems.AddMenuItemToList(mangoSmoothie);
            _listOfMenuItems.AddMenuItemToList(cokeDrink);
            _listOfMenuItems.AddMenuItemToList(chickenSandwich);
            _listOfMenuItems.AddMenuItemToList(chickenStrips);
            _listOfMenuItems.AddMenuItemToList(brisket);
            _listOfMenuItems.AddMenuItemToList(pizza);
        }