public static void AssertAreEqual(InsurancePolicy expected, InsurancePolicy actual)
        {
            Assert.AreEqual(expected.Id, actual.Id);
            Assert.AreEqual(expected.InsuranceType, actual.InsuranceType);
            Assert.AreEqual(expected.Price, actual.Price);
            Assert.AreEqual(expected.TermLength, actual.TermLength);
            Assert.AreEqual(expected.TermUnit, expected.TermUnit);
            Assert.AreEqual(expected.CoverageBeginDateTime, actual.CoverageBeginDateTime);
            Assert.AreEqual(expected.LastUpdateDate, actual.LastUpdateDate);

            Assert.AreEqual(expected.Customer.Id, actual.Customer.Id);
            Assert.AreEqual(expected.Customer.AddressLine1, actual.Customer.AddressLine1);
            Assert.AreEqual(expected.Customer.City, actual.Customer.City);
            Assert.AreEqual(expected.Customer.FirstName, actual.Customer.FirstName);
            Assert.AreEqual(expected.Customer.LastName, actual.Customer.LastName);
            Assert.AreEqual(expected.Customer.PostalCode, actual.Customer.PostalCode);
            Assert.AreEqual(expected.Customer.State, actual.Customer.State);
            Assert.AreEqual(expected.Customer.Country, actual.Customer.Country);

            Assert.AreEqual(expected.PaymentInformation.Id, actual.PaymentInformation.Id);
            Assert.AreEqual(expected.PaymentInformation.CreditCardNumber, actual.PaymentInformation.CreditCardNumber);
            Assert.AreEqual(expected.PaymentInformation.CreditCardType, actual.PaymentInformation.CreditCardType);
            Assert.AreEqual(expected.PaymentInformation.CreditCardVerificationNumber, actual.PaymentInformation.CreditCardVerificationNumber);
            Assert.AreEqual(expected.PaymentInformation.ExpirationDate, actual.PaymentInformation.ExpirationDate);
        }
 public void InitializeTest()
 {
     _policy = Xenios.Test.Helpers.InsurancePolicyHelper.CreateInsurancePolicy();
     _dataGridViewModel = new PolicyDataGridViewModel(_policy);
 }
 public void InitializeModel(InsurancePolicy policy)
 {
     _policy = policy;
     PropertyChanged += (sender, arg) => { _policy.LastUpdateDate = DateTime.Now; };
 }