private void validateEntity(PaymentCardView expected, PaymentMethodData actual)
 {
     Assert.IsNotNull(expected);
     Assert.IsNotNull(actual);
     Assert.AreEqual(expected.ID, actual.ID);
     Assert.AreEqual(expected.BillingAddress, actual.Address);
     Assert.AreEqual(expected.CardName, actual.Organization);
     Assert.AreEqual(expected.CardNumber, actual.Number);
     Assert.AreEqual(expected.CurrencyID, actual.CurrencyID);
     Assert.AreEqual(expected.DailyLimit, actual.DailyLimit);
     Assert.AreEqual(expected.IssueNumber, actual.Issue);
     Assert.AreEqual(expected.NameOnCard, actual.Name);
     validateDates(expected.ExpireDate, actual.ValidTo);
     validateDates(expected.ValidFrom, actual.ValidFrom);
     validateDates(expected.ValidTo, actual.ValidTo);
 }
        private static Dictionary <string, string> httpPostContext(PaymentCardView o)
        {
            var d = new Dictionary <string, string> {
                { GetMember.Name <PaymentCardView>(m => m.ID), o?.ID },
                { GetMember.Name <PaymentCardView>(m => m.BillingAddress), o?.BillingAddress },
                { GetMember.Name <PaymentCardView>(m => m.CardName), o?.CardName },
                { GetMember.Name <PaymentCardView>(m => m.CardNumber), o?.CardNumber },
                { GetMember.Name <PaymentCardView>(m => m.CurrencyID), o?.CurrencyID }, {
                    GetMember.Name <PaymentCardView>(m => m.DailyLimit),
                    o?.DailyLimit.ToString(CultureInfo.CurrentCulture)
                },
                { GetMember.Name <PaymentCardView>(m => m.IssueNumber), o?.IssueNumber },
                { GetMember.Name <PaymentCardView>(m => m.NameOnCard), o?.NameOnCard },
                { GetMember.Name <PaymentCardView>(m => m.ExpireDate), o?.ExpireDate.ToString() },
                { GetMember.Name <PaymentCardView>(m => m.ValidFrom), o?.ValidFrom.ToString() }
            };

            return(d);
        }