public void Arrange() { string[] spicyRamenIngredients = { "Miso Paste", "Sambal Oelek", "Nori Seaweed" }; _item = new MenuItems(01, "Spicy Ramen", "Cayde-6's personal favorite, with the perfect balance of savory\n and spicy. Giving your light level that extra kick it needs!", 450, spicyRamenIngredients); _repo = new MenuItemsRepo(); _repo.CreateMenuItem(_item); }
public void AddItem_ShouldGetTrue() { string[] spicyRamenIngredients = { "Miso Paste", "Sambal Oelek", "Nori Seaweed" }; MenuItems food = new MenuItems(01, "Spicy Ramen", "Cayde-6's personal favorite, with the perfect balance of savory\n and spicy. Giving your light level that extra kick it needs!", 450, spicyRamenIngredients); MenuItemsRepo repository = new MenuItemsRepo(); bool addResult = repository.CreateMenuItem(food); Assert.IsTrue(addResult); }
public void AddToList_ShouldGetNotNull() { MenuItem menuItem = new MenuItem(); menuItem.NameOfMenuItem = "Doublemeat Medley"; MenuItemsRepo repository = new MenuItemsRepo(); repository.AddItemToMenu(menuItem); MenuItem menuItemFromList = repository.GetMenuItemByNumber(1); Assert.IsNotNull(menuItemFromList); }
public void CafeTestsArrange() { _repo = new MenuItemsRepo(); menuItem1 = new MenuItem("Doublemeat Medley", "This item defies description.", new List <string>() { "a pure beefy patty above the mid-bun, a slice of processed chicken product below the mid-bun, pickles, and the secret ingredient." }, 5.99); menuItem2 = new MenuItem("Pan Galactic Gargle Blaster", "Its effects are similar to 'having your brains smashed out by a slice of lemon wrapped round a large gold brick.'", new List <string>() { "one bottle of Ol' Janx Spirit, one measure of water from the seas of Santraginus V, three cubes of Arcturan Mega-gin, four litres of Fallian marsh gas, a measure of Qualactin Hypermint extract, the tooth of an Algolian Suntiger, a sprinkle of Zamphuor, an olive" }, 9.99); _repo.AddItemToMenu(menuItem1); _repo.AddItemToMenu(menuItem2); }
public void Arrange() { _repo = new MenuItemsRepo(); _item = new MenuItems(1, "Basic Burger combo", "A plain burger with a side of fries", "lettuce, tomato, pickles", 5); _repo.AddItemsToMenu(_item); }