Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 // DELETE: api/Person/5
 public Person Delete(int id)
 {
     return(phoneBook.DeletePerson(id));
 }