public void SerializeDeserialize_CreditCardRequest() { CreateCreditCardRequestBody request = new CreateCreditCardRequestBody("ABC123", "DEF456", "HIJ789", "KLM000", "02110"); CreateCreditCardRequestBody deserialized = TestUtilities.SerializeThenDeserialize <CreateCreditCardRequestBody>(request); Assert.IsNotNull(deserialized); Assert.IsTrue(TestUtilities.PublicPropertiesAreEqual <CreateCreditCardRequestBody>(request, deserialized)); }
public CreditCard CreateCreditCard(string accessToken, CreateCreditCardRequestBody createCreditCard) { return(CreateCreditCard(accessToken, createCreditCard.EncryptedNumber, createCreditCard.EncryptedExpirationMonth, createCreditCard.EncryptedExpirationYear, createCreditCard.EncryptedCvv, createCreditCard.PostalCode)); }