Exemplo n.º 1
0
        public void ConvertToJsonTest()
        {
            CreditCardToken token    = GetCreditCardToken();
            string          expected = "{\"credit_card_id\":\"CARD-8PV12506MG6587946KEBHH4A\",\"payer_id\":\"009\",\"expire_month\":10,\"expire_year\":2015}";
            string          actual   = token.ConvertToJson();

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void ConvertToJsonTest()
        {
            CreditCardToken target   = GetCreditCardToken();
            string          expected = "{\"credit_card_id\":\"CARD-8PV12506MG6587946KEBHH4A\",\"payer_id\":\"009\"}";
            string          actual   = target.ConvertToJson();

            Assert.AreEqual(expected, actual);
        }