Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public SalesmanController(ISalesmanService salesmanService)
 {
     _salesmanService = salesmanService;
 }
 public NormalEmployeeFacade(ISalesmanService salesmanService, IAccountantService accountantService)
 {
     _salesmanService   = salesmanService;
     _accountantService = accountantService;
 }
Exemplo n.º 4
0
 public FileService(IUnityOfWork unityOfWork)
 {
     _customerService = new CustomerService(unityOfWork.customerRepository);
     _salesmanService = new SalesmanService(unityOfWork.salesmanRepository);
     _saleService     = new SaleService(unityOfWork.saleRepository);
 }