Ejemplo n.º 1
0
 public void SetUp()
 {
     _registry = new CentralRegistry(url, "HTS")
     {
         AuthToken    = _authToken,
         SubscriberId = _subId
     };
     _htsSendService = _serviceProvider.GetService <IHtsSendService>();
 }
Ejemplo n.º 2
0
 public HtsController(IMediator mediator, IExtractStatusService extractStatusService,
                      IHubContext <HtsActivity> hubContext, IHtsSendService htsSendService,
                      IHubContext <HtsSendActivity> hubSendContext)
 {
     _mediator                 = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _extractStatusService     = extractStatusService;
     _htsSendService           = htsSendService;
     Startup.HtsSendHubContext = _hubSendContext = hubSendContext;
     Startup.HtsHubContext     = _hubContext = hubContext;
 }
Ejemplo n.º 3
0
 public void SetUp()
 {
     _registry = new CentralRegistry(url, "HTS")
     {
         AuthToken    = _authToken,
         SubscriberId = _subId
     };
     _sendService         = TestInitializer.ServiceProvider.GetService <IHtsSendService>();
     _manifestHandlerMock = MockHelpers.HttpHandler(new StringContent("{" + $"\"{nameof(SendManifestResponse.FacilityKey)}\":\"{Guid.Empty}\"" + "}"));
     _handlerMock         = MockHelpers.HttpHandler(new StringContent("{" + $"\"{nameof(SendMpiResponse.BatchKey)}\":\"{Guid.Empty}\"" + "}"));
 }