Пример #1
0
        public static void AssertCardAndCSV(Card card, DataRow row)
        {
            Assert.AreEqual(card.ObjectType, "card");
            Assert.AreEqual(card.CvcCheck, "pass");

            Assert.AreEqual(card.Type, row["CardType"].ToString());
            Assert.AreEqual(card.ExpMonth.ToString(), row["ExpMonth"].ToString());

            Assert.IsTrue(card.ExpYear.ToString().EndsWith(row["ExpYear"].ToString()));
            Assert.IsTrue(row["CardNumber"].ToString().EndsWith(card.Last4));
        }
Пример #2
0
        public static void AssertCardAndCard(Card before, Card after)
        {
            Assert.AreEqual(before.ObjectType, "card");
            Assert.AreEqual(after.ObjectType, "card");

            Assert.AreEqual(before.CvcCheck, "pass");
            Assert.AreEqual(after.CvcCheck, "pass");

            Assert.AreEqual(before.Fingerprint, after.Fingerprint);
            Assert.AreEqual(before.Last4, after.Last4);
            Assert.AreEqual(before.Name, after.Name);
            Assert.AreEqual(before.ExpYear, after.ExpYear);
            Assert.AreEqual(before.ExpMonth, after.ExpMonth);
        }