コード例 #1
0
 public RouteRequestService(
     ISendToEndpointService sendToEndpointService,
     IValidateApplicationTokenService validateApplicationTokenService,
     IKafkaProducerService kafkaProducerService,
     IGetServiceSubscriptionsForEventService getServiceSubscriptionsForEventService,
     IDataStore dataStore
     )
 {
     _sendToEndpointService                  = sendToEndpointService;
     _validateApplicationTokenService        = validateApplicationTokenService;
     _kafkaProducerService                   = kafkaProducerService;
     _getServiceSubscriptionsForEventService = getServiceSubscriptionsForEventService;
     _dataStore = dataStore;
 }
コード例 #2
0
        public RouteRequestServiceTests()
        {
            _sendToEndpointService = A.Fake<ISendToEndpointService>();
            _validateApplicationTokenService = A.Fake<IValidateApplicationTokenService>();
            _kafkaProducerService = A.Fake<IKafkaProducerService>();
            _getServiceSubscriptionsForEventService = A.Fake<IGetServiceSubscriptionsForEventService>();
            _dataStore = A.Fake<IDataStore>();

            _sut = new RouteRequestService(
                _sendToEndpointService,
                _validateApplicationTokenService,
                _kafkaProducerService,
                _getServiceSubscriptionsForEventService,
                _dataStore
            );
        }