public void SetUp() { _registry = new CentralRegistry(url, "HTS") { AuthToken = _authToken, SubscriberId = _subId }; _htsSendService = _serviceProvider.GetService <IHtsSendService>(); }
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; }
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}\"" + "}")); }