Esempio n. 1
0
            public CustomerService()
            {
                //Contstructor injection
                _customerBL = new CustomerBusinessLogic(new CustomerDataAccess());

                //Property Injection
                _customerBL.DataAccess = new CustomerDataAccess();

                //Method Injection
                _customerBL.SetDependency(new CustomerDataAccess());
            }
Esempio n. 2
0
 public CustomerService()
 {
     _logic = new CustomerBusinessLogic();
     _logic.SetDependency(new DataAccess());
 }