public void InvoiceInitializer() { _IInvoiceAdjustmentRepository = new InvoiceAdjustmentRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <LMGEDI.Core.Data.SqlServer.LMGEDIDBContext>()); _IInvoiceRepository = new InvoiceRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <LMGEDI.Core.Data.SqlServer.LMGEDIDBContext>()); _IInvoiceImplBL = new InvoiceImpl(_IInvoiceRepository, _IInvoiceAdjustmentRepository); _IIPaymentRefundRepository = new PaymentRefundRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <LMGEDI.Core.Data.SqlServer.LMGEDIDBContext>()); _IPaymentRefundImplBL = new PaymentRefundImpl(_IIPaymentRefundRepository, _IInvoiceRepository, _IInvoiceAdjustmentRepository); }
public FileController(IFile fileBL, IAdjuster adjusterBL, IEmployer employerBL, IInsurer insurerBL, IInsurerBranch insurerBranchBL, IDepartment department, IInvoice invoice, IPayment payment, IStorageServices storageServices , IARCommonServices arCommonService, IInvoiceNote invoiceNote, IPaymentRefund paymentRefund, IState state) { _fileBL = fileBL; _adjusterBL = adjusterBL; _employerBL = employerBL; _insurerBL = insurerBL; _insurerBranchBL = insurerBranchBL; _department = department; _invoice = invoice; _payment = payment; _storageServices = storageServices; _arCommonService = arCommonService; _invoiceNote = invoiceNote; _paymentRefund = paymentRefund; _stateBL = state; }