public void EditContact_IdsNotMatching() { int id = 1, id2 = 2; var repo = new ContactRepo(null); var contact = new Contact() { Id = id, FirstName = "Kevin", LastName = null }; var result = repo.EditContact(id2, contact); Assert.False(result); }
public void EditContact_FirstAndLastIsNullOrWhiteSpace() { var id = 1; var repo = new ContactRepo(null); var contact = new Contact() { Id = id, FirstName = null, LastName = null }; var result = repo.EditContact(id, contact); Assert.False(result); }