private Contact Update(Contact contact) { // Arrange var put = (ContactUpdate)contact; put.Email = "[email protected]"; // Act var result = ApiExplorer.Contacts.Update(contact.Id, put); // Assert Assert.IsNotNull(result); Assert.AreEqual(put.Email, result.Email); Assert.AreEqual(contact.Id, result.Id); return result; }
private Contact Create(Contact contact) { // Arrange var post = (ContactCreate)contact; post.Email = "*****@*****.**"; post.CompanyName = "AlphaXX"; // Act var result = ApiExplorer.Contacts.Create(post); // Assert Assert.IsNotNull(result); Assert.AreEqual(post.Email, result.Email); Assert.AreEqual(post.CompanyName, result.CompanyName); return result; }