public void ShouldDeletePerson() { // Arrange var person = _phoneBook.GetBook().Last(); // Act var result = _phoneBook.DeletePerson(person.ID); // Assert Assert.IsTrue(result); Assert.AreEqual(3, _phoneBook.GetBook().Count); }
// DELETE: api/Person/5 public Person Delete(int id) { return(phoneBook.DeletePerson(id)); }