public CustomerService() { //Contstructor injection _customerBL = new CustomerBusinessLogic(new CustomerDataAccess()); //Property Injection _customerBL.DataAccess = new CustomerDataAccess(); //Method Injection _customerBL.SetDependency(new CustomerDataAccess()); }
public CustomerService() { _logic = new CustomerBusinessLogic(); _logic.SetDependency(new DataAccess()); }