Пример #1
0
        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");
        }