public RouteSegmentCommandFactory(
     IOptions <ApplicationSetting> applicationSettings,
     IRouteSegmentValidator routeSegmentValidator,
     IGeoDatabase geoDatabase,
     IRouteNodeFactory routeNodeFactory)
 {
     _applicationSettings   = applicationSettings.Value;
     _routeSegmentValidator = routeSegmentValidator;
     _geoDatabase           = geoDatabase;
     _routeNodeFactory      = routeNodeFactory;
 }
 public NewRouteSegmentDigitizedHandler(
     ILogger <NewRouteSegmentDigitizedHandler> logger,
     IGeoDatabase geoDatabase,
     IRouteNodeFactory routeNodeFactory,
     IRouteNodeEventFactory routeNodeEventFactory,
     IRouteSegmentEventFactory routeSegmentEventFactory,
     IEventStore eventStore,
     IOptions <ApplicationSetting> applicationSettings)
 {
     _logger                   = logger;
     _geoDatabase              = geoDatabase;
     _routeNodeFactory         = routeNodeFactory;
     _routeNodeEventFactory    = routeNodeEventFactory;
     _routeSegmentEventFactory = routeSegmentEventFactory;
     _eventStore               = eventStore;
     _applicationSettings      = applicationSettings.Value;
 }
Exemple #3
0
 public RouteSegmentConnectivityChangedHandler(
     ILogger <RouteSegmentConnectivityChangedHandler> logger,
     IOptions <KafkaSetting> kafkaSettings,
     IOptions <ApplicationSetting> applicationSettings,
     IGeoDatabase geoDatabase,
     IRouteNodeFactory routeNodeFactory,
     IRouteSegmentFactory routeSegmentFactory,
     IRouteNodeEventFactory routeNodeEventFactory,
     IRouteSegmentEventFactory routeSegmentEventFactory,
     IEventStore eventStore,
     IValidationService validationService = null)
 {
     _logger                   = logger;
     _kafkaSettings            = kafkaSettings.Value;
     _applicationSettings      = applicationSettings.Value;
     _geoDatabase              = geoDatabase;
     _routeNodeFactory         = routeNodeFactory;
     _routeSegmentFactory      = routeSegmentFactory;
     _routeNodeEventFactory    = routeNodeEventFactory;
     _routeSegmentEventFactory = routeSegmentEventFactory;
     _eventStore               = eventStore;
     _validationService        = validationService;
 }
Exemple #4
0
 public DefaultRouteGraphBuilder(IRouteNodeFactory factory)
 {
     _factory = factory ?? throw new ArgumentNullException(nameof(factory));
 }
 public DefaultRouteGraphBuilderTest()
 {
     _factory = Substitute.For <IRouteNodeFactory>();
     _builder = new DefaultRouteGraphBuilder(_factory);
 }