public void Delete_WhenItemExists_RemovesFromRepository() { _repository.Add(bosco); Assert.IsTrue(_repository.Delete("bosCo")); Assert.IsNull(_repository.Get("bosco")); }
internal Drink Delete(int id) { Drink drink = Get(id); _repo.Delete(drink); return(drink); }