public void CustomerCreateTest()
        {
            var customersPreCommit = CustomerRepository.GetAll();
            var totalCustomersPreCommit = customersPreCommit.Count();

            var customer = new Customer
            {
                FirstName = "fname",
                LastName = "lname",
                DateOfBirth = DateTime.Now,
                Age = 21,
                Education = "education",
                Gender = "gender"
            };

            //TODO: return created record id in order to perform a more accurate test
            CustomerRepository.Save(customer);

            var customersPostCommit = CustomerRepository.GetAll();
            var totalCustomersPostCommit = customersPostCommit.Count();

            Assert.AreNotEqual(totalCustomersPreCommit, totalCustomersPostCommit);
        }
        public void CustomerUpdateTest()
        {
            const long customerId = 6;
            const string firstName = "fname";
            const string lastName = "lname";
            var dateOfBirth = DateTime.Now;
            const int age = 21;
            const string education = "education";
            const string gender = "gender";

            var customer = new Customer
            {
                Id = customerId,
                FirstName = firstName,
                LastName = lastName,
                DateOfBirth = dateOfBirth,
                Age = age,
                Education = education,
                Gender = gender
            };

            CustomerRepository.Save(customer);

            var customerPostCommit = CustomerRepository.GetById(customerId);

            Assert.IsTrue(customerPostCommit.FirstName == firstName);
            Assert.IsTrue(customerPostCommit.LastName == lastName);
            Assert.IsTrue(customerPostCommit.DateOfBirth.ToShortDateString() == dateOfBirth.ToShortDateString());
            Assert.IsTrue(customerPostCommit.Age == age);
            Assert.IsTrue(customerPostCommit.Education == education);
            Assert.IsTrue(customerPostCommit.Gender == gender);
        }
 /// <summary>
 ///     Save Customer
 /// </summary>
 /// <param name="customer"></param>
 public void Post(Customer customer)
 {
     CustomerRepository.Save(customer);
 }