public void TestDeleteFromDatabase()
        {
            var tester = new Consumed("luket", new DateTime(), "4:30PM", "Home", " Stress", "fight");

            repo.Add(tester);
            repo.Delete(tester);
            Assert.AreEqual(0, repo.GetCount());
            repo.Clear();
        }
Exemplo n.º 2
0
 public HttpResponseMessage DeleteConsumed(int id)
 {
     consumes.Delete(id);
     return(new HttpResponseMessage(HttpStatusCode.OK));
 }