public void CreateContact_ReturnsANewContact() { _todelete = Api.CreateContact(GetTestId(TestId.ClientId), "Create", "Contact"); Assert.Equal("Create", _todelete.FirstName); Assert.Equal("Contact", _todelete.LastName); }
public void UpdateContact_UpdatesOnlyChangedValues() { _todelete = Api.CreateContact(GetTestId(TestId.ClientId), "Update", "Contact"); var updated = Api.UpdateContact(_todelete.Id, firstName: "Updated", title: "Title"); // stuff changed Assert.NotEqual(_todelete.FirstName, updated.FirstName); Assert.Equal("Updated", updated.FirstName); Assert.NotEqual(_todelete.Title, updated.Title); Assert.Equal("Title", updated.Title); // stuff didn't change Assert.Equal(_todelete.LastName, updated.LastName); Assert.Equal(_todelete.ClientId, updated.ClientId); }