public void Delete_WhenItemExists_RemovesFromRepository()
        {
            _repository.Add(bosco);

            Assert.IsTrue(_repository.Delete("bosCo"));
            Assert.IsNull(_repository.Get("bosco"));
        }
Exemple #2
0
        internal Drink Delete(int id)
        {
            Drink drink = Get(id);

            _repo.Delete(drink);
            return(drink);
        }