예제 #1
0
        public AppointmentSlotController(IAppointmentRepository appointmentRepository, IEventAppointmentService eventAppointmentService, ISessionContext sessionContext, IEventSchedulingSlotRepository eventSchedulingSlotRepository,
                                         IEventRepository eventRepository, IEventSchedulingSlotService eventSchedulingSlotService, IEventCustomerRepository eventCustomerRepository, IEventPodRoomRepository eventPodRoomRepository,
                                         IEventTestRepository eventTestRepository, IEventPackageRepository eventPackageRepository, IOrderRepository orderRepository)
        {
            _appointmentRepository         = appointmentRepository;
            _eventSchedulingSlotService    = eventSchedulingSlotService;
            _eventAppointmentService       = eventAppointmentService;
            _sessionContext                = sessionContext;
            _eventSchedulingSlotRepository = eventSchedulingSlotRepository;
            _eventRepository               = eventRepository;
            _eventCustomerRepository       = eventCustomerRepository;
            _eventPodRoomRepository        = eventPodRoomRepository;
            _eventTestRepository           = eventTestRepository;

            _eventPackageRepository = eventPackageRepository;
            _orderRepository        = orderRepository;

            if (sessionContext == null || sessionContext.UserSession == null)
            {
                _eventSchedulingSlotService.LoggedinUserRole       = Roles.Customer;
                _eventSchedulingSlotService.LoggedinUserParentRole = Roles.Customer;
            }
            else
            {
                _eventSchedulingSlotService.LoggedinUserRole       = (Roles)sessionContext.UserSession.CurrentOrganizationRole.RoleId;
                _eventSchedulingSlotService.LoggedinUserParentRole = (Roles)sessionContext.UserSession.CurrentOrganizationRole.ParentRoleId;
            }
        }
예제 #2
0
        public CustomerRegistrationService(IMassRegistrationEditModelFactory massRegistrationEditModelFactory, ISessionContext sessionContext,
                                           ICustomerService customerService, IOrganizationRoleUserRepository orgRoleUserRepository,
                                           IEventPackageRepository eventPackageRepository, IEventCustomerRepository eventCustomerRepository, IOrderController orderController,
                                           IAddressService addressService, IShippingOptionRepository shippingOptionRepository, IShippingController shippingController, INotifier notifier,
                                           IEmailNotificationModelsFactory emailNotificationModelsFactory, IEventTestRepository eventTestRepository, ISettings settings, IStateRepository stateRepository,
                                           IEventAppointmentService eventAppointmentService, IEventPackageSelectorService eventPackageSelectorService, IEventSchedulingSlotService eventSchedulingSlotService,
                                           IEventRepository eventRepository, IPhoneNotificationModelsFactory smsNotificationModelsFactory, ICorporateAccountRepository corporateAccountRepository,
                                           IEmailTemplateRepository emailTemplateRepository, ICustomerRepository customerRepository, ICustomerNotesService customerNotesService,
                                           ILanguageRepository languageRepository, ILabRepository labRepository, IUserLoginRepository userLoginRepository, ILogManager logManager,
                                           IEventCustomerNotificationRepository eventCustomerNotificationRepository, ICorporateCustomerUploadService corporateCustomerUploadService,
                                           ICurrentMedicationRepository currentMedicationRepository, ICustomerIcdCodesRepository customerIcdCodesRepository,
                                           IEventCustomerCurrentMedicationRepository eventCustomerCurrentMedicationRepository, IEventCustomerIcdCodesRepository eventCustomerIcdCodesRepository)
        {
            _massRegistrationEditModelFactory = massRegistrationEditModelFactory;
            _sessionContext           = sessionContext;
            _customerService          = customerService;
            _orgRoleUserRepository    = orgRoleUserRepository;
            _eventPackageRepository   = eventPackageRepository;
            _eventCustomerRepository  = eventCustomerRepository;
            _orderController          = orderController;
            _addressService           = addressService;
            _shippingOptionRepository = shippingOptionRepository;
            _shippingController       = shippingController;
            _notifier = notifier;
            _emailNotificationModelsFactory = emailNotificationModelsFactory;
            _eventTestRepository            = eventTestRepository;
            _settings                     = settings;
            _stateRepository              = stateRepository;
            _eventAppointmentService      = eventAppointmentService;
            _eventPackageSelectorService  = eventPackageSelectorService;
            _eventSchedulingSlotService   = eventSchedulingSlotService;
            _eventRepository              = eventRepository;
            _smsNotificationModelsFactory = smsNotificationModelsFactory;
            _corporateAccountRepository   = corporateAccountRepository;
            _emailTemplateRepository      = emailTemplateRepository;
            _customerRepository           = customerRepository;
            _customerNotesService         = customerNotesService;

            _languageRepository  = languageRepository;
            _labRepository       = labRepository;
            _userLoginRepository = userLoginRepository;

            _eventCustomerNotificationRepository = eventCustomerNotificationRepository;

            _corporateCustomerUploadService           = corporateCustomerUploadService;
            _currentMedicationRepository              = currentMedicationRepository;
            _customerIcdCodesRepository               = customerIcdCodesRepository;
            _eventCustomerCurrentMedicationRepository = eventCustomerCurrentMedicationRepository;
            _eventCustomerIcdCodesRepository          = eventCustomerIcdCodesRepository;
            _logger = logManager.GetLogger("Customer Registration Service");
        }
예제 #3
0
 public MedicareOrderService(IOrgRoleUserModelBinder iOrgRoleUserModelBinder, ISessionContext sessionContext,
                             IOrganizationRoleUserRepository organizationRoleUserRepository, IEventAppointmentService eventAppointmentService, IEventPackageRepository eventPackageRepository,
                             IEventTestRepository eventTestRepository, IOrderController orderController, IEventRepository eventRepository, IEventPodRepository eventPodRepository,
                             IEventPodRoomRepository eventPodRoomRepository)
 {
     _iOrgRoleUserModelBinder        = iOrgRoleUserModelBinder;
     _sessionContext                 = sessionContext;
     _organizationRoleUserRepository = organizationRoleUserRepository;
     _eventAppointmentService        = eventAppointmentService;
     _eventPackageRepository         = eventPackageRepository;
     _eventTestRepository            = eventTestRepository;
     _orderController                = orderController;
     _eventRepository                = eventRepository;
     _eventPodRepository             = eventPodRepository;
     _eventPodRoomRepository         = eventPodRoomRepository;
 }
예제 #4
0
 public EventSchedulerService(IEventRepository eventRepository, IAppointmentRepository appointmentRepository, IEventTestRepository eventTestRepository, IEventPackageRepository eventPackageRepository, IEventCustomerSummaryModelFactory eventCustomerSummaryModelFactory,
                              IHostRepository hostRepository, ITempCartRepository tempCartRepository, IOnlineSchedulingDataFactory onlineSchedulingDataFactory, IValidator <SourceCodeApplyEditModel> sourceCodeValidator, ISourceCodeRepository sourceCodeRepository,
                              ICustomerRepository customerRepository, IElectronicProductRepository electronicProductRepository, IShippingOptionRepository shippingOptionRepository, IPaymentController paymentController, IEventCustomerRepository eventCustomerRepository,
                              IShippingController shippingController, IOrderController orderController, IAddressRepository addressRepository, IHospitalPartnerRepository hospitalPartnerRepository, IShippingDetailOrderDetailRepository shipingDetailOrderDetailRepository,
                              IOrganizationRepository organizationRepository, IOrderRepository orderRepository, IRefundRequestRepository refundRequestRepository, IToolTipRepository toolTipRepository, IConfigurationSettingRepository configurationSettingRepository,
                              IEventSchedulingSlotService slotService, IEventSchedulingSlotRepository slotRepository, IEventAppointmentService eventAppointmentService, IEligibilityRepository eligibilityRepository, IChargeCardRepository chargeCardRepository, ICorporateAccountRepository corporateAccountRepository)
 {
     _customerRepository                 = customerRepository;
     _eventRepository                    = eventRepository;
     _appointmentRepository              = appointmentRepository;
     _eventPackageRepository             = eventPackageRepository;
     _eventTestRepository                = eventTestRepository;
     _tempCartRepository                 = tempCartRepository;
     _hostRepository                     = hostRepository;
     _onlineSchedulingDataFactory        = onlineSchedulingDataFactory;
     _sourceCodeValidator                = sourceCodeValidator;
     _sourceCodeRepository               = sourceCodeRepository;
     _eventCustomerSummaryModelFactory   = eventCustomerSummaryModelFactory;
     _productRepository                  = electronicProductRepository;
     _shippingOptionRepository           = shippingOptionRepository;
     _paymentController                  = paymentController;
     _eventCustomerRepository            = eventCustomerRepository;
     _shippingController                 = shippingController;
     _orderController                    = orderController;
     _shipingDetailOrderDetailRepository = shipingDetailOrderDetailRepository;
     _orderRepository                    = orderRepository;
     _addressRepository                  = addressRepository;
     _hospitalPartnerRepository          = hospitalPartnerRepository;
     _organizationRepository             = organizationRepository;
     _refundRequestRepository            = refundRequestRepository;
     _toolTipRepository                  = toolTipRepository;
     _configurationSettingRepository     = configurationSettingRepository;
     _slotService                = slotService;
     _slotRepository             = slotRepository;
     _eventAppointmentService    = eventAppointmentService;
     _eligibilityRepository      = eligibilityRepository;
     _chargeCardRepository       = chargeCardRepository;
     _corporateAccountRepository = corporateAccountRepository;
 }
 public EventAppointmentServiceTester()
 {
     DependencyRegistrar.RegisterDependencies();
     IoC.Resolve <IAutoMapperBootstrapper>().Bootstrap();
     _eventAppointmentService = IoC.Resolve <IEventAppointmentService>();
 }