public void GetCustomerById()
 {
     var logic = new CustomerLogic(new CustomerOracleContext());
     var customer = logic.GetById(1);
     Assert.IsNotNull(customer, "Getting customer by id failed");
 }
        public void UpdateCustomer()
        {
            var logic = new CustomerLogic(new CustomerOracleContext());
            var customer = logic.GetById(1);
            var exceptedcustomer = logic.GetById(1);
            exceptedcustomer.Password = logic.GetHashedPassword("winkel");

            customer.Password = logic.GetHashedPassword("winkel");
            logic.Update(customer);
            customer = logic.GetById(1);

            Assert.AreEqual(exceptedcustomer.Password, customer.Password, "Updating customer failed");
        }