Example #1
0
 public TrexSLService()
 {
     _templateService             = ObjectFactory.GetInstance <ITemplateService>();
     _invoiceService              = ObjectFactory.GetInstance <IInvoiceService>();
     _customerInvoiceGroupService = ObjectFactory.GetInstance <ICustomerInvoiceGroupService>();
     _customerService             = ObjectFactory.GetInstance <ICustomerService>();
     _projectService              = ObjectFactory.GetInstance <IProjectService>();
     _taskService           = ObjectFactory.GetInstance <ITaskService>();
     _timeEntryService      = ObjectFactory.GetInstance <ITimeEntryService>();
     _userManagementService = ObjectFactory.GetInstance <IUserManagementService>();
     _membershipService     = ObjectFactory.GetInstance <IMembershipService>();
     _invoiceSender         = ObjectFactory.GetInstance <IInvoiceSender>();
 }
Example #2
0
 public TrexSLService(IInvoiceService invoiceService,
                      ITemplateService templateService,
                      ICustomerInvoiceGroupService customerInvoiceGroupService,
                      ICustomerService customerService,
                      IProjectService projectService,
                      ITaskService taskService,
                      ITimeEntryService timeEntryService,
                      IUserManagementService userManagementService,
                      IMembershipService membershipService,
                      IInvoiceSender invoiceSender)
 {
     _invoiceService              = invoiceService;
     _templateService             = templateService;
     _customerInvoiceGroupService = customerInvoiceGroupService;
     _customerService             = customerService;
     _projectService              = projectService;
     _taskService           = taskService;
     _timeEntryService      = timeEntryService;
     _userManagementService = userManagementService;
     _membershipService     = membershipService;
     _invoiceSender         = invoiceSender;
 }