public void Arrange() { _repo = new CafeRepo(); _data = new CafeLibrary(1, "BLT", "Bacon Lettuce and Tomato Sandwich", "Pork Bacon Lettuce, Tomato, Mayo and Rye Bread", 4.99); _repo.AddDatatoMenu(_data); }
public void AddToMenu() { MealItem content = new MealItem(); CafeRepo repository = new CafeRepo(); bool addResult = repository.AddMealToMenu(content); Assert.IsTrue(addResult); }
public void AddMenuItemToRepository_ShouldReturnTrue() { CafeRepo _repo = new CafeRepo(); MenuItem myItem = new MenuItem(); bool wasAdded = _repo.AddMenuItemToRepository(myItem); Assert.IsTrue(wasAdded); }
public void AddNewMenuItem_ShouldReturnTrue() { MenuItem item = new MenuItem(); CafeRepo repo = new CafeRepo(); bool wasAdded = repo.AddNewMenuItem(item); Assert.IsTrue(wasAdded); }
public void Arrange() { _repo = new CafeRepo(); _item = new Cafe(9, "Chicken Tenders", "Best Kid's Meal In House", new List <string> { "Chicken tenders", "your choice of potato", "your choice of dipping sauce" }, 5.00m); _repo.AddItemToCafe(_item); }
public void MealTest() { _meal = new Meal(1, "Taco Salad", "Mixed Greens", 8.95, OurMenu.Salad, new List <string>() { "Chile, Sour Cream, Tomatoes" }); _cafeRepo = new CafeRepo(); _cafeRepo.AddMealToMenu(_meal); }
public void GetMenuItemByName_ShouldReturnCorrectItem() { CafeRepo repo = new CafeRepo(); MenuItem pizza = new MenuItem(1, "Pizza", "pizza", new List <string>(), 1.00m); repo.AddNewMenuItem(pizza); MenuItem searchResult = repo.GetMenuItemByName("Pizza"); Assert.AreEqual(pizza, searchResult); }
public void GetAllMenuItems_ShouldReturnNotNull() { var repo = new CafeRepo(); var item = new MenuItem(); repo.AddNewMenuItem(item); List <MenuItem> getMenu = repo.GetAllMenuItems(); Assert.IsNotNull(getMenu); }
public void RemoveMenuItem_ShouldReturnTrue() { var item = new MenuItem(); var repo = new CafeRepo(); repo.AddNewMenuItem(item); bool wasRemoved = repo.RemoveMenuItem(item); Assert.IsTrue(wasRemoved); }
public void AddItemToMenuTest() { CafeRepo _listOfMenuItems = new CafeRepo(); MenuItems item = new MenuItems(1, "Soup", "It's soup you dumb idiot.", "idk soup stuff", 2.99m); _listOfMenuItems.AddMenuItemToList(item); List <MenuItems> testMenu = _listOfMenuItems.GetMenuItems(); }
public void DefaultValues() { _repo = new CafeRepo(); _iRepo = new IngredientsRepo(); _iContent = new IngredientsContent("bread"); _listOfIngredients.Add(_iContent); _content = new CafeContent(1, "Grilled Cheese", "Melted cheese between two pieces of sourdough.", _listOfIngredients, 5.99); _repo.AddMenuItem(_content); }
public void AddItemsTest() { //Arrange ----> setting what is needed for our method to work CafeRepo newRepo = new CafeRepo(); MenuItem item = new MenuItem(); //ACT --> call the method bool result = newRepo.AddMenuItem(item); //Assert Assert.IsTrue(result); }
public void GetMenu_ShouldReturnCorrectMeal() { MealItem content = new MealItem(); CafeRepo repo = new CafeRepo(); repo.AddMealToMenu(content); List <MealItem> contents = repo.GetAllMeals(); bool menuHasMeal = contents.Contains(content); Assert.IsTrue(menuHasMeal); }
public void AddToCafeMenu_MenuItemNotNull() { CafeMenu menuItem = new CafeMenu(); menuItem.MealName = "Roast Beef Sandwich"; CafeRepo repo = new CafeRepo(); repo.AddToCafeMenu(menuItem); CafeMenu menuItemByMealName = repo.SearchMealByName("Roast Beef Sandwich"); Assert.IsNotNull(menuItemByMealName); }
public void GetAllMenuItems_ShouldReturnListOfMenuItems() { MenuItem content = new MenuItem(); CafeRepo repo = new CafeRepo(); repo.AddMenuItemToRepository(content); List <MenuItem> fullRepo = repo.GetAllMenuItems(); bool directoryHasContents = fullRepo.Contains(content); Assert.IsTrue(directoryHasContents); }
public void RemoveMenuItemFromRepository_ShouldReturnTrue() { CafeRepo _repo = new CafeRepo(); MenuItem myItem = new MenuItem(); myItem.MealNumber = 5; _repo.AddMenuItemToRepository(myItem); bool wasRemoved = _repo.RemoveMenuItemFromRepository(myItem); Assert.IsTrue(wasRemoved); }
public void Arrange() { _repo = new CafeRepo(); List <string> ingredientsForBNM = new List <string> { "Bananas, Walnuts, flour, sugar, salt" }; _item = new Menu(1, "Banana Nut Muffin", "A delicious banana muffin packed with walnuts", ingredientsForBNM, 2.99); _repo.AddNewMenuItem(_item); }
public void GetList_Test() { //Arrange MenuItem item = new MenuItem(); CafeRepo newRepo = new CafeRepo(); newRepo.AddMenuItem(item); //ACT List <MenuItem> items = newRepo.GetList(); bool hasItems = items.Contains(item); //Assert Assert.IsTrue(hasItems); }
public void Arrange() { _repo = new CafeRepo(); _menu = new CafeClass("Salad", "Chickn Club Sald", new List <string>() { "lightly fried chicken," + "egg," + "tomato," + "avocado," + "onion," + "house made croutons" }, 16.00); _repo.AddMenuToList(_menu); }
public void RemoveItem_Test() { //Arrange what is needed for method to work CafeRepo _cafeRepo = new CafeRepo(); List <MenuItem> items = _cafeRepo.GetList(); MenuItem item = new MenuItem(); //ACT ---> Call Method _cafeRepo.AddMenuItem(item); bool remove = _cafeRepo.DeleteExistingItem(item); bool doesHaveItem = items.Contains(item); //ASSERT Assert.IsFalse(doesHaveItem); }
public void AddToListNull() { // Arrange CafeLibrary data = new CafeLibrary(); data.MealNumber = 1; CafeRepo repository = new CafeRepo(); // Act repository.AddDatatoMenu(data); CafeLibrary dataFromDir = repository.GetDataWithMealNumber(1); // Assert Assert.IsNotNull(dataFromDir); }
public void MyAddTestMethod() { //Arrange CafeClass cafe = new CafeClass(); cafe.MealName = "Salad"; CafeRepo repo = new CafeRepo(); //Act repo.AddMenuToList(cafe); CafeClass menuFromCafe = repo.GetMenuByNum(cafe.MealNumber); //Assert Assert.IsNotNull(menuFromCafe); }
public void AddToListNotNull() { //Arrange Meal meal = new Meal(); meal.MealName = "Salad"; CafeRepo cafe = new CafeRepo(); //Act cafe.AddMealToMenu(meal); Meal mealFromDirectory = cafe.GetMealByMealName("Salad"); //Assert List <Meal> meaDirectory = cafe.GetListOfMeals(); Assert.IsNotNull(mealFromDirectory); }
public void Arragne() { _repo = new CafeRepo(); _content = new MealItem(5.99, "CheeseBurger", "100% Angus Beef with Cheader Cheese", 2, "Angus Beef, Tomato, Lettus, Cheader Chesse, Onion, Pickle, Mayo"); _repo.AddMealToMenu(_content); }
public void CafeMealArranged() { _cafeRepo = new CafeRepo(); _cafeMenu = new CafeMenu("BLT", "BLT sandwich on wheat bread, served with house chips and a medium beverage.", 1, "bacon, tomato, lettuce, mayo, wheat bread, homemade potato chips", 7.99); }