Example #1
0
 public void SetUp()
 {
     _registry = new CentralRegistry(url, "CBS")
     {
         AuthToken    = _authToken,
         SubscriberId = _subId
     };
     _cbsSendService = _serviceProvider.GetService <ICbsSendService>();
 }
Example #2
0
 public DwhExtractsController(IMediator mediator, IExtractStatusService extractStatusService, IHubContext <ExtractActivity> hubContext, IDwhSendService dwhSendService, IHubContext <DwhSendActivity> hubSendContext, ICbsSendService cbsSendService)
 {
     _mediator                 = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _extractStatusService     = extractStatusService;
     _dwhSendService           = dwhSendService;
     _cbsSendService           = cbsSendService;
     Startup.DwhSendHubContext = _hubSendContext = hubSendContext;
     Startup.HubContext        = _hubContext = hubContext;
 }
Example #3
0
 public DwhExtractsController(IMediator mediator, IExtractStatusService extractStatusService, IHubContext <ExtractActivity> hubContext, IDwhSendService dwhSendService, ICbsSendService cbsSendService, ICTSendService ctSendService, IExtractRepository extractRepository)
 {
     _mediator             = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _extractStatusService = extractStatusService;
     _dwhSendService       = dwhSendService;
     _cbsSendService       = cbsSendService;
     _ctSendService        = ctSendService;
     _extractRepository    = extractRepository;
     Startup.HubContext    = _hubContext = hubContext;
     _version = GetType().Assembly.GetName().Version.ToString();
 }
 public void SetUp()
 {
     _registry = new CentralRegistry(url, "CBS")
     {
         AuthToken    = _authToken,
         SubscriberId = _subId
     };
     _sendService         = TestInitializer.ServiceProvider.GetService <ICbsSendService>();
     _manifestHandlerMock = MockHelpers.HttpHandler(new StringContent("{" + $"\"{nameof(SendManifestResponse.FacilityKey)}\":\"{Guid.Empty}\"" + "}"));
     _mpiHandlerMock      = MockHelpers.HttpHandler(new StringContent("{" + $"\"{nameof(SendMpiResponse.BatchKey)}\":\"{Guid.Empty}\"" + "}"));
 }
Example #5
0
 public CbsController(IMediator mediator, IExtractStatusService extractStatusService,
                      IHubContext <CbsActivity> hubContext, IMasterPatientIndexRepository masterPatientIndexRepository,
                      ICbsSendService cbsSendService, IHubContext <CbsSendActivity> hubSendContext, IMpiSearchService mpiSearchService)
 {
     _mediator                     = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _extractStatusService         = extractStatusService;
     _masterPatientIndexRepository = masterPatientIndexRepository;
     _cbsSendService               = cbsSendService;
     _mpiSearchService             = mpiSearchService;
     Startup.CbsSendHubContext     = _hubSendContext = hubSendContext;
     Startup.CbsHubContext         = _hubContext = hubContext;
 }
Example #6
0
        public CbsController(IMediator mediator, IExtractStatusService extractStatusService,
                             IHubContext <CbsActivity> hubContext, IMasterPatientIndexRepository masterPatientIndexRepository,
                             ICbsSendService cbsSendService, IHubContext <CbsSendActivity> hubSendContext, IMpiSearchService mpiSearchService)
        {
            _mediator                     = mediator ?? throw new ArgumentNullException(nameof(mediator));
            _extractStatusService         = extractStatusService;
            _masterPatientIndexRepository = masterPatientIndexRepository;
            _cbsSendService               = cbsSendService;
            _mpiSearchService             = mpiSearchService;
            Startup.CbsSendHubContext     = _hubSendContext = hubSendContext;
            Startup.CbsHubContext         = _hubContext = hubContext;
            var ver = GetType().Assembly.GetName().Version;

            _version = $"{ver.Major}.{ver.Minor}.{ver.Build}";
        }