public void Startup() { _orderRepository = new TestOrderRepository(); _catalogRepository = new TestCatalogRepository(); _addressValidation = new TestAddressValidator(); _shippingRepository = new TestShippingRepository(); _shippingService = new SimpleShippingService(_shippingRepository); _taxRepository = new TestTaxRepository(); _taxService = new RegionalSalesTaxService(_taxRepository); _orderService = new OrderService(_orderRepository, _catalogRepository, _shippingRepository, _shippingService); _personalizationRepository = new TestPersonalizationRepository(); _personalizationService = new PersonalizationService(_personalizationRepository, _orderRepository, _orderService, _catalogRepository); _catalogService = new CatalogService(_catalogRepository, _orderService); _paymentService = new FakePaymentService(); _incentiveRepository = new TestIncentiveRepository(); _incentiveService = new IncentiveService(_incentiveRepository); //this service throws the sent mailers into a collection //and does not use SMTP _mailerService = new TestMailerService(); _inventoryRepository = new TestInventoryRepository(); _inventoryService = new InventoryService(_inventoryRepository, _catalogService); _mailerRepository = new TestMailerRepository(); _pipeline = new DefaultPipeline( _addressValidation, _paymentService, _orderService, _mailerService, _inventoryService ); }
public void Startup() { _orderRepository = new TestOrderRepository(); _catalogRepository = new TestCatalogRepository(); _addressValidation = new TestAddressValidator(); _shippingRepository = new TestShippingRepository(); _shippingService = new SimpleShippingService(_shippingRepository); _taxRepository = new TestTaxRepository(); _taxService = new RegionalSalesTaxService(_taxRepository); _orderService = new OrderService(_orderRepository,_catalogRepository,_shippingRepository,_shippingService); _personalizationRepository = new TestPersonalizationRepository(); _personalizationService = new PersonalizationService(_personalizationRepository,_orderRepository, _orderService,_catalogRepository); _catalogService = new CatalogService(_catalogRepository,_orderService); _paymentService = new FakePaymentService(); _incentiveRepository = new TestIncentiveRepository(); _incentiveService = new IncentiveService(_incentiveRepository); //this service throws the sent mailers into a collection //and does not use SMTP _mailerService = new TestMailerService(); _inventoryRepository = new TestInventoryRepository(); _inventoryService = new InventoryService(_inventoryRepository,_catalogService); _mailerRepository = new TestMailerRepository(); _pipeline=new DefaultPipeline( _addressValidation,_paymentService, _orderService,_mailerService, _inventoryService ); }
public ImportUI() { incentiveRepository = EntityContainer.GetType <IIncentiveRepository>(); employeeRepository = EntityContainer.GetType <IEmployeeRepository>(); absenceRepository = EntityContainer.GetType <IAbsenceRepository>(); overTimeRepository = EntityContainer.GetType <IOverTimeRepository>(); branchRepository = EntityContainer.GetType <IBranchRepository>(); departmentRepository = EntityContainer.GetType <IDepartmentRepository>(); gradeRepository = EntityContainer.GetType <IGradeRepository>(); occupationRepository = EntityContainer.GetType <IOccupationRepository>(); principalRepository = EntityContainer.GetType <IPrincipalRepository>(); insuranceProgramRepository = EntityContainer.GetType <IInsuranceProgramRepository>(); employeeDepartmentRepository = EntityContainer.GetType <IEmployeeDepartmentRepository>(); employeeGradeRepository = EntityContainer.GetType <IEmployeeGradeRepository>(); employeeOccupationRepository = EntityContainer.GetType <IEmployeeOccupationRepository>(); employeePrincipalRepository = EntityContainer.GetType <IEmployeePrincipalRepository>(); employeeStatusRepository = EntityContainer.GetType <IEmployeeStatusRepository>(); employeeInsuranceRepository = EntityContainer.GetType <IEmployeeInsuranceRepository>(); employeeSalaryRepository = EntityContainer.GetType <IEmployeeSalaryRepository>(); InitializeComponent(); }
public IncentiveService( IIncentiveRepository incentiveRepository, IIncentiveFactory incentiveFactory) { _incentiveRepository = incentiveRepository; _incentiveFactory = incentiveFactory; _incentiveLoader = new Lazy <Dictionary <int, IIncentive> >(GetIncentives); }
public IncentiveUI() { InitializeComponent(); incentiveRepository = EntityContainer.GetType <IIncentiveRepository>(); userAccessRepository = EntityContainer.GetType <IUserAccessRepository>(); employeeRepository = EntityContainer.GetType <IEmployeeRepository>(); employeeDepartmentRepository = EntityContainer.GetType <IEmployeeDepartmentRepository>(); }
public ExportUI() { payrollRepository = EntityContainer.GetType <IPayrollRepository>(); transferRepository = EntityContainer.GetType <ITransferRepository>(); thrRepository = EntityContainer.GetType <ITHRRepository>(); incentiveRepository = EntityContainer.GetType <IIncentiveRepository>(); InitializeComponent(); }
public WorkCalendarUI() { InitializeComponent(); workCalendarRepository = EntityContainer.GetType <IWorkCalendarRepository>(); userAccessRepository = EntityContainer.GetType <IUserAccessRepository>(); incentiveRepository = EntityContainer.GetType <IIncentiveRepository>(); payrollRepository = EntityContainer.GetType <IPayrollRepository>(); employeeDebtItemRepository = EntityContainer.GetType <IEmployeeDebtItemRepository>(); }
public ParamDateUI() { InitializeComponent(); payrollRepository = EntityContainer.GetType <IPayrollRepository>(); thrRepository = EntityContainer.GetType <ITHRRepository>(); companyRepository = EntityContainer.GetType <ICompanyRepository>(); incentiveRepository = EntityContainer.GetType <IIncentiveRepository>(); overTimeRepository = EntityContainer.GetType <IOverTimeRepository>(); employeeDebtItemRepository = EntityContainer.GetType <IEmployeeDebtItemRepository>(); }
public ClosingPeriodUI(MainUI frmMain) { InitializeComponent(); this.frmMain = frmMain; workCalendarRepository = EntityContainer.GetType <IWorkCalendarRepository>(); incentiveRepository = EntityContainer.GetType <IIncentiveRepository>(); payrollRepository = EntityContainer.GetType <IPayrollRepository>(); employeeDebtItemRepository = EntityContainer.GetType <IEmployeeDebtItemRepository>(); overTimeRepository = EntityContainer.GetType <IOverTimeRepository>(); }
public IncentiveAssignmentService( ITraderRepository traderRepository, IIncentiveDefinitionRepository incentiveDefinitionRepository, IIncentiveValueCalculator incentiveValueCalculator, IIncentiveRepository incentiveRepository ) { _traderRepository = traderRepository; _incentiveDefinitionRepository = incentiveDefinitionRepository; _incentiveValueCalculator = incentiveValueCalculator; _incentiveRepository = incentiveRepository; }
public IncentiveService(IIncentiveRepository incentiveRepository) { _incentiveRepository = incentiveRepository; }