Exemplo n.º 1
0
        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
                );
        }
Exemplo n.º 2
0
        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
                );


        }
Exemplo n.º 3
0
        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);
 }
Exemplo n.º 5
0
 public IncentiveUI()
 {
     InitializeComponent();
     incentiveRepository          = EntityContainer.GetType <IIncentiveRepository>();
     userAccessRepository         = EntityContainer.GetType <IUserAccessRepository>();
     employeeRepository           = EntityContainer.GetType <IEmployeeRepository>();
     employeeDepartmentRepository = EntityContainer.GetType <IEmployeeDepartmentRepository>();
 }
Exemplo n.º 6
0
        public ExportUI()
        {
            payrollRepository   = EntityContainer.GetType <IPayrollRepository>();
            transferRepository  = EntityContainer.GetType <ITransferRepository>();
            thrRepository       = EntityContainer.GetType <ITHRRepository>();
            incentiveRepository = EntityContainer.GetType <IIncentiveRepository>();

            InitializeComponent();
        }
Exemplo n.º 7
0
 public WorkCalendarUI()
 {
     InitializeComponent();
     workCalendarRepository     = EntityContainer.GetType <IWorkCalendarRepository>();
     userAccessRepository       = EntityContainer.GetType <IUserAccessRepository>();
     incentiveRepository        = EntityContainer.GetType <IIncentiveRepository>();
     payrollRepository          = EntityContainer.GetType <IPayrollRepository>();
     employeeDebtItemRepository = EntityContainer.GetType <IEmployeeDebtItemRepository>();
 }
Exemplo n.º 8
0
 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>();
 }
Exemplo n.º 9
0
        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>();
        }
Exemplo n.º 10
0
 public IncentiveAssignmentService(
     ITraderRepository traderRepository,
     IIncentiveDefinitionRepository incentiveDefinitionRepository,
     IIncentiveValueCalculator incentiveValueCalculator,
     IIncentiveRepository incentiveRepository
     )
 {
     _traderRepository = traderRepository;
     _incentiveDefinitionRepository = incentiveDefinitionRepository;
     _incentiveValueCalculator      = incentiveValueCalculator;
     _incentiveRepository           = incentiveRepository;
 }
Exemplo n.º 11
0
 public IncentiveService(IIncentiveRepository incentiveRepository) {
     _incentiveRepository = incentiveRepository;
 }
Exemplo n.º 12
0
 public IncentiveService(IIncentiveRepository incentiveRepository)
 {
     _incentiveRepository = incentiveRepository;
 }