예제 #1
0
        public void ConvertSDKToSDK()
        {
            sdkCreditCard = CreateTypicalSDKCreditCard();
            converter     = new CreditCardConverter(sdkCreditCard);
            OneSpanSign.Sdk.CreditCard creditCard = converter.ToSDKCreditCard();

            Assert.IsNotNull(creditCard);
            Assert.AreEqual(sdkCreditCard, creditCard);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void ConvertNullSDKToSDK()
 {
     sdkCreditCard = null;
     converter     = new CreditCardConverter(sdkCreditCard);
     Assert.IsNull(converter.ToSDKCreditCard());
 }
예제 #4
0
 public void ConvertNullAPIToSDK()
 {
     apiCreditCard = null;
     converter     = new CreditCardConverter(apiCreditCard);
     Assert.IsNull(converter.ToSDKCreditCard());
 }