public void Delete_Message_Returns_False_On_Exception()
 {
     var repo = new InMemoryMessageRepository();
     repo.Add(message);
     //make sure message is added
     var msgs = repo.Get();
     Assert.IsNotNull(msgs);
     Assert.AreEqual(1, msgs.Count());
     var result = repo.Delete(12); //Id doesn't exist
     Assert.IsFalse(result);
     msgs = repo.Get();
     Assert.IsNotNull(msgs);
     Assert.AreEqual(1, msgs.Count());
 }
 public void Delete_Message_From_Repository()
 {
     var repo = new InMemoryMessageRepository();
     repo.Add(message);
     //make sure message is added
     var msgs = repo.Get();
     Assert.IsNotNull(msgs);
     Assert.AreEqual(1, msgs.Count());
     var result = repo.Delete(1);
     Assert.IsTrue(result);
     msgs = repo.Get();
     Assert.IsNotNull(msgs);
     Assert.AreEqual(0, msgs.Count());
 }