public void GetKomodoByCafe() { KomodoCafeRespository komodoCafe = new KomodoCafeRespository(); KomodoCafe komodo = new KomodoCafe(4, "Food", KomodoCafe.Ingredients.BurgerFriesDrink, "This meal is something", 3.0); komodoCafe.AddCafeToList(komodo); KomodoCafe actual = _CafeRepo.GetKomodoByCafe(8); Assert.AreEqual(komodo, actual); }
public void RemoveFromListTest() { KomodoCafeRespository cafeRespository = new KomodoCafeRespository(); KomodoCafe komodo = new KomodoCafe(4, "Food", KomodoCafe.Ingredients.BurgerFriesDrink, "This meal is something", 3.0); _CafeRepo.AddCafeToList(komodo); bool wasRemoved = _CafeRepo.RemoveContentFromList(komodo); Assert.IsTrue(wasRemoved); }
public void Arrange() { _CafeRepo = new KomodoCafeRespository(); _Cafe = new KomodoCafe(4, "Food", KomodoCafe.Ingredients.BurgerFriesDrink, "This meal is something", 3.0); }