Пример #1
0
 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);
 }
Пример #2
0
        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);
        }