public void ConvertSDKToSDK() { sdkCreditCard = CreateTypicalSDKCreditCard(); converter = new CreditCardConverter(sdkCreditCard); OneSpanSign.Sdk.CreditCard creditCard = converter.ToSDKCreditCard(); Assert.IsNotNull(creditCard); Assert.AreEqual(sdkCreditCard, creditCard); }
public void ConvertAPIToSDK() { apiCreditCard = CreateTypicalAPICreditCard(); converter = new CreditCardConverter(apiCreditCard); OneSpanSign.Sdk.CreditCard creditCard = converter.ToSDKCreditCard(); Assert.IsNotNull(creditCard); Assert.AreEqual(CC_NUM, creditCard.Number); Assert.AreEqual(CC_EXP_YEAR, creditCard.Expiration.Year); }
public void ConvertNullSDKToSDK() { sdkCreditCard = null; converter = new CreditCardConverter(sdkCreditCard); Assert.IsNull(converter.ToSDKCreditCard()); }
public void ConvertNullAPIToSDK() { apiCreditCard = null; converter = new CreditCardConverter(apiCreditCard); Assert.IsNull(converter.ToSDKCreditCard()); }