示例#1
0
 public TestResultController(ITestResultService testResultService, ITestResultResponseComposer responseComposer,
                             IMapper mapper)
 {
     this.testResultService = testResultService;
     this.responseComposer  = responseComposer;
     this.mapper            = mapper;
 }
示例#2
0
 public TakeTestController(ITestResultService testResultService, ISubjectService subjectService, ITestService testService, IQuestionService questionService)
 {
     this.subjectService    = subjectService;
     this.testService       = testService;
     this.questionService   = questionService;
     this.testResultService = testResultService;
 }
示例#3
0
 public ResultsController(ITestResultService testResultService, IEventCustomerResultRepository eventCustomerResultRepository, IHealthAssessmentService healthAssessmentService, ISessionContext sessionContext,
                          ISettings settings, ICustomerService customerService, ILogManager logManager, IPdfGenerator pdfGenerator, IMediaRepository mediaRepository, IConfigurationSettingRepository configurationSettingRepository,
                          IKynHealthAssessmentService kynHealthAssessmentService, IGenerateKynLipidService generateKynLipidService, IFluVaccinationConsentService vaccinationConsentService, IEventCustomerRepository eventCustomerRepository
                          , IPriorityInQueueService priorityInQueueService, ICustomerEventPriorityInQueueDataRepository priorityInQueueRepository, IEventRepository eventRepository, INewResultFlowStateService newResultFlowStateService,
                          IGiftCardService giftCardService, IParticipationConsentService participationConsentService, IChaperoneService chaperoneService)
 {
     _customerService               = customerService;
     _testResultService             = testResultService;
     _eventCustomerResultRepository = eventCustomerResultRepository;
     _healthAssessmentService       = healthAssessmentService;
     _sessionContext = sessionContext;
     _pageSize       = settings.DefaultPageSizeForReports;
     _logger         = logManager.GetLogger <Global>();
     _pdfGenerator   = pdfGenerator;
     _pdfGenerator.AllowLoadingJavascriptbeforePdfGenerate = true;
     _mediaRepository = mediaRepository;
     _settings        = settings;
     _configurationSettingRepository = configurationSettingRepository;
     _kynHealthAssessmentService     = kynHealthAssessmentService;
     _generateKynLipidService        = generateKynLipidService;
     _vaccinationConsentService      = vaccinationConsentService;
     _eventCustomerRepository        = eventCustomerRepository;
     _priorityInQueueService         = priorityInQueueService;
     _priorityInQueueRepository      = priorityInQueueRepository;
     _eventRepository             = eventRepository;
     _newResultFlowStateService   = newResultFlowStateService;
     _giftCardService             = giftCardService;
     _participationConsentService = participationConsentService;
     _chaperoneService            = chaperoneService;
 }
        public PreAssessmentCallQueueService(ICustomerRepository customerRepository,
                                             IProspectCustomerRepository prospectCustomerRepository, IPreAssessmentCallQueuePatientInfomationFactory preAssessmentCallQueuePatientInfomationFactory,
                                             ICallCenterCallRepository callCenterCallRepository,
                                             IEventRepository eventRepository, IEventCustomerRepository eventCustomerRepository,
                                             IAddressService addressService, IStateRepository stateRepository,
                                             ICustomerService customerService, IPreAssessmentCallQueueCustomerLockRepository preAssessmentCallQueueCustomerLockRepository,
                                             ICallQueueRepository callQueueRepository, IPreApprovedTestRepository preApprovedTestRepository,
                                             IPrimaryCarePhysicianHelper primaryCarePhysicianHelper, ICorporateCustomerCustomTagRepository corporateCustomerCustomTagRepository,
                                             ICorporateAccountRepository corporateAccountRepository, ICustomerNotesService customerNotesService,
                                             IAccountAdditionalFieldRepository accountAdditionalFieldRepository, ICallCenterNotesRepository callCenterNotesRepository,
                                             IPreApprovedPackageRepository preApprovedPackageRepository, IPackageRepository packageRepository,
                                             IPreAssessmentCustomerCallQueueCallAttemptRepository preAssessmentCustomerCallQueueCallAttemptRepository, ICustomerAccountGlocomNumberService customerAccountGlocomNumberService,
                                             IUniqueItemRepository <File> fileRepository, IMediaRepository mediaRepository, IEventService eventService, IAppointmentRepository appointmentRepository, IOrganizationRepository organizationRepository,
                                             IOutboundCallQueueService outboundCallQueueService,
                                             IProspectCustomerFactory prospectCustomerFactory, ICallCenterRepository callCenterRepository, ISettings settings, ICallCenterRepProfileRepository callCenterRepProfileRepository,
                                             ICustomerEligibilityRepository customerEligibilityRepository, ICustomerWarmTransferRepository customerWarmTransferRepository, ITestResultService testResultService, IActivityTypeRepository activityTypeRepository,
                                             IAccountHraChatQuestionnaireHistoryServices accountHraChatQuestionnaireHistoryServices
                                             )
        {
            _customerRepository         = customerRepository;
            _prospectCustomerRepository = prospectCustomerRepository;
            _preAssessmentCallQueuePatientInfomationFactory = preAssessmentCallQueuePatientInfomationFactory;
            _callCenterCallRepository = callCenterCallRepository;
            _eventRepository          = eventRepository;
            _eventCustomerRepository  = eventCustomerRepository;
            _addressService           = addressService;
            _stateRepository          = stateRepository;
            _customerService          = customerService;
            _preAssessmentCallQueueCustomerLockRepository = preAssessmentCallQueueCustomerLockRepository;
            _callQueueRepository                  = callQueueRepository;
            _preApprovedTestRepository            = preApprovedTestRepository;
            _primaryCarePhysicianHelper           = primaryCarePhysicianHelper;
            _corporateCustomerCustomTagRepository = corporateCustomerCustomTagRepository;
            _corporateAccountRepository           = corporateAccountRepository;
            _customerNotesService                 = customerNotesService;
            _accountAdditionalFieldRepository     = accountAdditionalFieldRepository;
            _callCenterNotesRepository            = callCenterNotesRepository;
            _preApprovedPackageRepository         = preApprovedPackageRepository;
            _packageRepository = packageRepository;
            _preAssessmentCustomerCallQueueCallAttemptRepository = preAssessmentCustomerCallQueueCallAttemptRepository;
            _customerAccountGlocomNumberService = customerAccountGlocomNumberService;
            _fileRepository         = fileRepository;
            _mediaRepository        = mediaRepository;
            _eventService           = eventService;
            _appointmentRepository  = appointmentRepository;
            _organizationRepository = organizationRepository;

            _outboundCallQueueService = outboundCallQueueService;

            _prospectCustomerFactory = prospectCustomerFactory;
            _callCenterRepository    = callCenterRepository;
            _settings = settings;
            _callCenterRepProfileRepository = callCenterRepProfileRepository;
            _customerEligibilityRepository  = customerEligibilityRepository;
            _customerWarmTransferRepository = customerWarmTransferRepository;
            _testResultService      = testResultService;
            _activityTypeRepository = activityTypeRepository;
            _accountHraChatQuestionnaireHistoryServices = accountHraChatQuestionnaireHistoryServices;
        }
 /// <summary>
 /// Instanciates StatisticService with specified parameters.
 /// </summary>
 /// <param name="service"> ITestResultService instance.</param>
 /// <exception> System.ArgumentNullException if service is null.</exception>
 public UserTestingStatisticService(ITestResultService service)
 {
     if (service == null)
     {
         throw new ArgumentNullException(nameof(service));
     }
     this.service = service;
 }
示例#6
0
 public TestsController(ITestService testService, ICategoryService categoryService, UserManager <User> userManager, ITestResultService testResultService, ICommentService commentService)
 {
     _TestService       = testService;
     _CategoryService   = categoryService;
     _TestResultService = testResultService;
     _CommentService    = commentService;
     _userManager       = userManager;
 }
示例#7
0
        public MasterGradebookViewModel(ITestResultService testResultService)
        {
            _resultService = testResultService;

            var gradebooks = _resultService.GetMasterGradebook().ToList();

            StudentsGradebooks = new ObservableCollection <MasterGradebookTestResultModel>(gradebooks);
        }
 public TestController(ITestService testService, ITestResultService testResultService, IUserService userService, IThemeService themeService, IProfileService profileService)
 {
     this.testService       = testService;
     this.testResultService = testResultService;
     this.userService       = userService;
     this.themeService      = themeService;
     this.profileService    = profileService;
 }
示例#9
0
 public void SetUp()
 {
     IoC.Register <ISettings, FakeSettings>();
     DependencyRegistrar.RegisterDependencies();
     IoC.Resolve <IAutoMapperBootstrapper>().Bootstrap();
     _testResultService = IoC.Resolve <TestResultService>();
     _organizationRoleUserRepository = IoC.Resolve <OrganizationRoleUserRepository>();
 }
 public TestCaseService()
 {
     mongoRepository   = new MongoRepository();
     dataFillService   = new DataFillService();
     testModuleService = new TestModuleService();
     testClassService  = new TestClassService();
     testDataService   = new TestDataService();
     testResultService = new TestResultService();
 }
 public NewResultFlowStateService(IMedicareApiService medicareApiService, ISettings settings, ILogManager logManager, ITestResultService testResultService)
 {
     _medicareApiService = medicareApiService;
     _testResultService  = testResultService;
     _medicareApiUrl     = settings.MedicareApiUrl;
     _organizationName   = settings.OrganizationNameForHraQuestioner;
     _syncWithHra        = settings.SyncWithHra;
     _logger             = logManager.GetLogger("HipNewResultFlowStateService");
 }
示例#12
0
 public ManualAuditAndEnteryService(IEventCustomerResultRepository eventCustomerResultRepository, ITestResultService testResultService, ICommunicationRepository communicationRepository, INewResultFlowStateService newResultFlowStateService,
                                    IEventRepository eventRepository)
 {
     _eventCustomerResultRepository = eventCustomerResultRepository;
     _testResultService             = testResultService;
     _communicationRepository       = communicationRepository;
     _newResultFlowStateService     = newResultFlowStateService;
     _eventRepository = eventRepository;
     new TestResultRepository();
 }
示例#13
0
 public TestResultController(ITestResultService testresultService, IHttpContextAccessor httpContextAccessor, UserManager <IdentityUser> _userManager,
                             SignInManager <IdentityUser> _signInManager, IOptions <AppSettings> appSettings, IMapper mapper)
 {
     this._userManager    = _userManager;
     this._signInManager  = _signInManager;
     _appSettings         = appSettings.Value;
     _httpContextAccessor = httpContextAccessor;
     _testResultService   = testresultService;
     _mapper = mapper;
 }
示例#14
0
 public SolutionService(ISolutionRepository solutionRepository,
                        ITestRepository testRepository,
                        ITestResultService testResultService,
                        IMapper mapper)
 {
     _solutionRepository = solutionRepository;
     _testResultService  = testResultService;
     _mapper             = mapper;
     _testRepository     = testRepository;
 }
示例#15
0
 public TestPerformedReportPollingAgent(ICorporateAccountRepository corporateAccountRepository, ILogManager logManager, ISettings settings,
                                        ITestResultService testResultService, ITestPerformedCsvExportHelper testPerformedCsvExportHelper)
 {
     _corporateAccountRepository = corporateAccountRepository;
     _testResultService          = testResultService;
     //_baseExportableReportHelper = baseExportableReportHelper;
     _testPerformedCsvExportHelper = testPerformedCsvExportHelper;
     _reportDestinationPath        = settings.ReportDestinationPath;
     _dayOfMonth = settings.DayOfMonthServiceRun;
     _logger     = logManager.GetLogger("Reporting Service");
 }
示例#16
0
 public MedicalExportableReportHelper(IMediaRepository mediaRepository, IBaseReportService baseReportService, ILogManager logManager, ITestResultService testResultService, ITestNotPerformedService testNotPerformedService,
                                      IEventCustomerReportingService eventCustomersReportingService, IEventArchiveStatsService eventArchiveStatsService, ITestPerformedCsvExportHelper testPerformedCsvExportHelper, IEventCustomerQuestionAnswerService eventCustomerQuestionAnswerServcie)
     : base(mediaRepository, baseReportService, logManager)
 {
     _testResultService                  = testResultService;
     _testNotPerformedService            = testNotPerformedService;
     _eventCustomersReportingService     = eventCustomersReportingService;
     _eventArchiveStatsService           = eventArchiveStatsService;
     _baseReportService                  = baseReportService;
     _testPerformedCsvExportHelper       = testPerformedCsvExportHelper;
     _eventCustomerQuestionAnswerServcie = eventCustomerQuestionAnswerServcie;
 }
        public TestResultViewModel(ITestResultService testResultService)
        {
            _testResultService = testResultService;

            _userTestModel = TinyTempCache.Get <Type, UserTestModel>(typeof(UserTestModel));

            _testResults = _testResultService.GetResults(new TestKey
            {
                UnitName   = _userTestModel.UnitName,
                LessonName = _userTestModel.LessonName
            });
        }
 /// <summary>
 /// Instanciates StatisticService with specified parameters.
 /// </summary>
 /// <param name="service"> ITestResultService instance.</param>
 /// <param name="testService"> ITestResultService instance.</param>
 /// <exception> System.ArgumentNullException if service is null.</exception>
 public TestingStatisticsService(ITestResultService service, ITestService testService)
 {
     if (service == null)
     {
         throw new ArgumentNullException(nameof(service));
     }
     if (testService == null)
     {
         throw new ArgumentNullException(nameof(testService));
     }
     this.service     = service;
     this.testService = testService;
 }
示例#19
0
 public ReportsController(ISettings settings, ITestResultService testResultService, IPhysicianEvaluationService physicianEvaluationService, IKynCustomerReportService kynCustomerReportService, ITestNotPerformedService testNotPerformedService,
                          IEventCustomerReportingService eventCustomerReportingService, ISessionContext sessionContext, IEventArchiveStatsService eventArchiveStatsService, IEventCustomerQuestionAnswerService eventCustomerQuestionAnswerServcie)
 {
     _pageSize                           = settings.DefaultPageSizeForReports;
     _testResultService                  = testResultService;
     _physicianEvaluationService         = physicianEvaluationService;
     _kynCustomerReportService           = kynCustomerReportService;
     _testNotPerformedService            = testNotPerformedService;
     _eventCustomerReportingService      = eventCustomerReportingService;
     _sessionContext                     = sessionContext;
     _eventArchiveStatsService           = eventArchiveStatsService;
     _eventCustomerQuestionAnswerServcie = eventCustomerQuestionAnswerServcie;
 }
示例#20
0
        public TestResultsController(ITestResultService service)
        {
            _resultService = service ?? throw new ArgumentNullException("Service must not be null.");

            _mapper = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <ResultDetailsModel, ResultDetailsDTO>();
                cfg.CreateMap <ResultDetailsDTO, ResultDetailsModel>();
                cfg.CreateMap <TestResultModel, TestResultDTO>();
                cfg.CreateMap <TestResultDTO, TestResultModel>();
            })
                      .CreateMapper();
        }
示例#21
0
 public WalletService(IOtpService otpService, IWalletRepository walletRepository, IWalletDetailRepository walletDetailRepository,
                      ITestResultService testResultService, ITokenService tokenService, ICryptoService cryptoService,
                      IAmazonS3Broker amazonS3Broker, ISessionService sessionService, IWalletDetailService walletDetailService)
 {
     _walletDetailRepository = walletDetailRepository;
     _testResultService      = testResultService;
     _tokenService           = tokenService;
     _cryptoService          = cryptoService;
     _amazonS3Broker         = amazonS3Broker;
     _sessionService         = sessionService;
     _walletDetailService    = walletDetailService;
     _otpService             = otpService;
     _walletRepository       = walletRepository;
 }
示例#22
0
        public MedicareEventCustomerResultController(ILogManager logManager, IMedicareService medicareService,
                                                     ITestResultService testResultService, IOrganizationRoleUserRepository organizationRoleUserRepository,
                                                     ICorporateAccountRepository corporateAccountRepository, IEventCustomerRepository eventCustomerRepository, IEventRepository eventRepository, IAccountHraChatQuestionnaireHistoryServices accountHraChatQuestionnaireHistoryServices)
        {
            _medicareService   = medicareService;
            _testResultService = testResultService;

            _logger = logManager.GetLogger <LoginController>();
            _organizationRoleUserRepository = organizationRoleUserRepository;
            _corporateAccountRepository     = corporateAccountRepository;
            _eventCustomerRepository        = eventCustomerRepository;
            _eventRepository = eventRepository;
            _accountHraChatQuestionnaireHistoryServices = accountHraChatQuestionnaireHistoryServices;
        }
示例#23
0
 public CustomerEventCriticalDataController(ITestResultService testResultService, IPdfGenerator pdfGenerator, IMediaRepository mediaRepository, ISettings settings, ISessionContext sessionContext,
                                            ICustomerCriticalDataRepository customerCriticalDataRepository, ITestRepository testRepository, IEventCustomerCriticalQuestionRepository eventCustomerCriticalQuestionRepository, IEventCustomerRepository eventCustomerRepository)
 {
     _testResultService = testResultService;
     _pdfGenerator      = pdfGenerator;
     _mediaRepository   = mediaRepository;
     _settings          = settings;
     _pageSize          = settings.DefaultPageSizeForReports;
     _sessionContext    = sessionContext;
     _customerCriticalDataRepository = customerCriticalDataRepository;
     _testRepository = testRepository;
     _eventCustomerCriticalQuestionRepository = eventCustomerCriticalQuestionRepository;
     _eventCustomerRepository = eventCustomerRepository;
 }
 public SendNotiificationToNursePractitionerPollingAgent(IEmailNotificationModelsFactory emailNotificationModelsFactory,
                                                         IEventCustomerResultRepository eventCustomerResultRepository, ILogManager logManager, INotifier notifier,
                                                         ISettings settings, ITestResultService testResultService, INewResultFlowStateService newResultFlowStateService,
                                                         IOrganizationRoleUserRepository organizationRoleUserRepository, IEventCustomerRepository eventCustomerRepository)
 {
     _emailNotificationModelsFactory = emailNotificationModelsFactory;
     _eventCustomerResultRepository  = eventCustomerResultRepository;
     _testResultService              = testResultService;
     _newResultFlowStateService      = newResultFlowStateService;
     _organizationRoleUserRepository = organizationRoleUserRepository;
     _eventCustomerRepository        = eventCustomerRepository;
     _notifier = notifier;
     _settings = settings;
     _logger   = logManager.GetLogger("SendNotiificationToNursePractitionerPollingAgent");
 }
        public SettingsController(
            IUserManagementService userManagementService,
            IUserDataService userDataService,
            ITestResultService testResultService,
            IImageService imageService,
            IAuthenticationManager authManager,
            IMapper mapper)
        {
            _userManagementService = userManagementService;
            _userDataService       = userDataService;
            _testResultService     = testResultService;
            _imageService          = imageService;
            _authManager           = authManager;
            _mapper = mapper;

            pageSize = Defaults.GetPageSize();
        }
示例#26
0
        public EawvHraParserPollingAgent(ISettings settings, ILogManager logManager, IMediaRepository mediaRepository,
                                         ICorporateAccountRepository corporateAccountRepository, IXmlSerializer <HraResultTags> eawvHraSerializer,
                                         IMediaHelper mediaHelper, IEventCustomerRepository eventCustomerRepository, IEventRepository eventRepository, ITestResultService testResultServiceForResultState)
        {
            _settings                        = settings;
            _mediaRepository                 = mediaRepository;
            _corporateAccountRepository      = corporateAccountRepository;
            _eawvHraSerializer               = eawvHraSerializer;
            _mediaHelper                     = mediaHelper;
            _eventCustomerRepository         = eventCustomerRepository;
            _eventRepository                 = eventRepository;
            _testResultServiceForResultState = testResultServiceForResultState;

            _testResultService = new Service.TestResultService();

            _isDevEnvironment = settings.IsDevEnvironment;
            _logger           = logManager.GetLogger("EawhraParser");
        }
        public StartedTestViewModel(ITestService testService, ITestResultService testResultService)
        {
            _answers = new Dictionary <string, ICollection <string> >();

            _testKey           = TinyTempCache.Get <Type, TestKey>(typeof(TestKey));
            _testService       = testService;
            _testResultService = testResultService;
            _userTestModel     = _testService.GetTestByTaskDescriptionWithPermution(_testKey);

            _timer = _userTestModel.Duration;

            NextQuestion = new RelayCommand(ShowNextQuestion);
            TestResult   = new RelayCommand(ShowTestResult);
            Back         = new RelayCommand(ShowBack);

            Reset();
            StartTimer();
        }
示例#28
0
        public MedicareController(ISessionContext sessionContext, IMedicareService medicareService,
                                  IMedicareOrderService medicareOrderService, UserService userService, IRoleRepository roleRepository, IEventCustomerRepository eventCustomerRepository,
                                  ICustomerCheckListService customerCheckListService, ILogManager logManager, ITestResultService testResultService,
                                  IOrganizationRoleUserRepository organizationRoleUserRepository)
        {
            ValidateToken();
            _sessionContext                 = sessionContext;
            _medicareService                = medicareService;
            _medicareOrderService           = medicareOrderService;
            _userService                    = userService;
            _roleRepository                 = roleRepository;
            _eventCustomerRepository        = eventCustomerRepository;
            _customerCheckListService       = customerCheckListService;
            _organizationRoleUserRepository = organizationRoleUserRepository;

            _testResultService = testResultService;
            _logger            = logManager.GetLogger <LoginController>();
        }
示例#29
0
        public PanelController(
            IUserManagementService userManagementService,
            IUserDataService userDataService,
            ITestService testService,
            IQuestionService questionService,
            IAnswerService answerService,
            ITestingService testingService,
            ITestResultService testResultService,
            IAuthenticationManager authManager,
            IMapper mapper)
        {
            _userManagementService = userManagementService;
            _userDataService       = userDataService;
            _testService           = testService;
            _questionService       = questionService;
            _answerService         = answerService;
            _testingService        = testingService;
            _testResultService     = testResultService;
            _authManager           = authManager;
            _mapper = mapper;

            pageSize = Defaults.GetPageSize();
        }
 public void SetUp()
 {
     _context = new ApplicationDbContext(UnitTestsHelper.GetUnitTestDbOptions());
     _service = new TestResultService(new UnitOfWork(_context));
 }
示例#31
0
 public TestController()
 {
     this.subcategoryService = new SubcategoryService();
     this.testService = new TestService();
     this.testResultService = new TestResultService();
 }
示例#32
0
 public TestResultController()
 {
     this.testResultService = new TestResultService();
 }
示例#33
0
 public TestController(ITestService testService, ITestResultService testResultService, ISubcategoryService subcategoryService)
 {
     this.subcategoryService = subcategoryService;
     this.testService = testService;
     this.testResultService = testResultService;
 }
示例#34
0
 public TestResultController(ITestResultService testResultService)
 {
     this.testResultService = testResultService;
 }