コード例 #1
0
 public MgsController(IMediator mediator, IExtractStatusService extractStatusService,
                      IHubContext <MgsActivity> hubContext, IMgsSendService mgsSendService,
                      IHubContext <MgsSendActivity> hubSendContext)
 {
     _mediator                 = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _extractStatusService     = extractStatusService;
     _mgsSendService           = mgsSendService;
     Startup.MgsSendHubContext = _hubSendContext = hubSendContext;
     Startup.MgsHubContext     = _hubContext = hubContext;
 }
コード例 #2
0
 public void SetUp()
 {
     _registry = new CentralRegistry(url, "CBS")
     {
         AuthToken    = _authToken,
         SubscriberId = _subId
     };
     _sendService         = TestInitializer.ServiceProvider.GetService <IMgsSendService>();
     _manifestHandlerMock = MockHelpers.HttpHandler(new StringContent("{" + $"\"{nameof(SendManifestResponse.FacilityKey)}\":\"{Guid.Empty}\"" + "}"));
     _mpiHandlerMock      = MockHelpers.HttpHandler(new StringContent("{" + $"\"{nameof(SendMpiResponse.BatchKey)}\":\"{Guid.Empty}\"" + "}"));
 }