Ejemplo n.º 1
0
        public void ConvertSDKToSDK()
        {
            sdkCreditCard = CreateTypicalSDKCreditCard();
            converter     = new CreditCardConverter(sdkCreditCard);
            OneSpanSign.Sdk.CreditCard creditCard = converter.ToSDKCreditCard();

            Assert.IsNotNull(creditCard);
            Assert.AreEqual(sdkCreditCard, creditCard);
        }
Ejemplo n.º 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);
        }