public CustomerService() { _customerBL = new CustomerBusinessLogic(); _customerBL.DataAccess = new CustomerDataAccess(); }
public CustomerService() { _customerBL = new CustomerBusinessLogic(); // method ((IDataAccessDependency)_customerBL).SetDependency(new CustomerDataAccess()); }
// constructor public CustomerService() { // new object is created here _customerBL = new CustomerBusinessLogic(new CustomerDataAccess()); }