Exemplo n.º 1
0
        public static void AssertChargeReqAndRes(ChargeRequest req, Charge res)
        {
            Assert.AreEqual(res.ObjectType, "charge");

            Assert.AreEqual(res.Amount, req.Amount);
            Assert.AreEqual(res.Description, req.Description);
            Assert.AreEqual(res.Customer, req.Customer);
            Assert.AreEqual(res.Currency, req.Currency);
            Assert.AreEqual(res.Customer, req.Customer);
        }
Exemplo n.º 2
0
        public static void AssertChargeAndCharge(Charge before, Charge after)
        {
            Assert.AreEqual(before.Amount, after.Amount);
            Assert.AreEqual(before.AmountRefunded, after.AmountRefunded);
            Assert.AreEqual(before.Captured, after.Captured);
            Assert.AreEqual(before.Created, after.Created);
            Assert.AreEqual(before.Currency, after.Currency);
            Assert.AreEqual(before.Customer, after.Customer);
            Assert.AreEqual(before.Description, after.Description);
            Assert.AreEqual(before.ExpireTime, after.ExpireTime);
            Assert.AreEqual(before.FailureMessage, after.FailureMessage);
            Assert.AreEqual(before.ID, after.ID);
            Assert.AreEqual(before.Paid, after.Paid);
            Assert.AreEqual(before.Refunded, after.Refunded);

            Helper.AssertCardAndCard(before.Card, after.Card);
        }