public void Arrange() { _repo = new Main_Repository(); _main = new MainFood("Double CheeseBurger", "Two flambroiled patties with cheese on each pattie layed on a charred brioche bun. Then topped with pickles, ketchup, and mustard.", "Two flamebroiled patties, 1 brioche bun, pickles, 1Tbl of mayo, 1Tbl ketchup", 6.95, 1); _repo.AddContentToMainFood(_main); }
public void GetDirectory_ShouldReturnCurrentCollection() { MainFood content = new MainFood(); Main_Repository repo = new Main_Repository(); repo.AddContentToMainFood(content); List <MainFood> contents = repo.GetAllContent(); bool directoryHasContent = contents.Contains(content); Assert.IsTrue(directoryHasContent); }
//create private void AddContentToMainFood() { MainFood content = new MainFood(); Console.WriteLine("Enter item name."); content.MainFoodName = Console.ReadLine(); Console.WriteLine("Add Descritption of item."); content.MainFoodName = Console.ReadLine(); Console.WriteLine("What is the menu number for item?"); content.MenuNumber = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Ingredients to make item."); content.MainIngredients = Console.ReadLine(); Console.WriteLine("Last step, what is the price of the item?"); content.MainPrice = Convert.ToDouble(Console.ReadLine()); _repo.AddContentToMainFood(content); Console.WriteLine("Your item has been added. Press any key to return to the menu."); Console.ReadKey(); }