public FileDownloadService() { _invoiceWorker = ObjectFactory.GetInstance <IInvoiceWorker>(); _invoiceService = ObjectFactory.GetInstance <IInvoiceService>(); _invoiceSender = ObjectFactory.GetInstance <IInvoiceSender>(); _templateService = ObjectFactory.GetInstance <ITemplateService>(); _contextProvider = ObjectFactory.GetInstance <ITrexContextProvider>(); }
public FileDownloadService(IInvoiceWorker invoiceWorker, IInvoiceService invoiceService, IInvoiceSender invoiceSender, ITemplateService templateService, ITrexContextProvider contextProvider) { _invoiceWorker = invoiceWorker; _invoiceService = invoiceService; _invoiceSender = invoiceSender; _templateService = templateService; _contextProvider = contextProvider; }