public Flow() { _unityOfWork = new UnityOfWork(); _fileValidation = new FileValidation(); _fileService = new FileService(_unityOfWork); _salesmanService = new SalesmanService(_unityOfWork.salesmanRepository); _customerService = new CustomerService(_unityOfWork.customerRepository); _saleService = new SaleService(_unityOfWork.saleRepository); }
public SalesmanController(ISalesmanService salesmanService) { _salesmanService = salesmanService; }
public NormalEmployeeFacade(ISalesmanService salesmanService, IAccountantService accountantService) { _salesmanService = salesmanService; _accountantService = accountantService; }
public FileService(IUnityOfWork unityOfWork) { _customerService = new CustomerService(unityOfWork.customerRepository); _salesmanService = new SalesmanService(unityOfWork.salesmanRepository); _saleService = new SaleService(unityOfWork.saleRepository); }