Exemple #1
0
            public CustomerService()
            {
                //Contstructor injection
                _customerBL = new CustomerBusinessLogic(new CustomerDataAccess());

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

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