public void Arrange() { _kcrepo = new KomodoCafeRepo(); _content = new KomodoCafeContent(9, "Derp", "Derpina", IngredientList.Mayonaise, 10.10m); _kcrepo.AddContentToDirectory(_content); //Stopped here because I remembered we only needed to test our methods for challenge one. }
public void AddContentToDirectory_ShouldGetCorrectBool() { KomodoCafeContent content = new KomodoCafeContent(); KomodoCafeRepo repo = new KomodoCafeRepo(); bool addResult = repo.AddContentToDirectory(content); Assert.IsTrue(addResult); }
public void GetAllDirectory_ShouldReturnCorrectList() { KomodoCafeContent testContent = new KomodoCafeContent(); KomodoCafeRepo repo = new KomodoCafeRepo(); repo.AddContentToDirectory(testContent); List <KomodoCafeContent> testList = repo.GetAllContent(); bool directoryHasContent = testList.Contains(testContent); Assert.IsTrue(directoryHasContent); }
public void Seed() { _repo = new KomodoCafeRepo(); burger = new KomodoCafeMenu( 1, "BurgerMeal", "Big Burger Meal", "Flour, cow", 55.55m ); KomodoCafeMenu Chicken = new KomodoCafeMenu( 2, "Chicken Meal", "Spicky chicken sammich", "flour, chicken, spice", 66.66m); _repo.AddContentToDirectory(burger); _repo.AddContentToDirectory(Chicken); }