public PredictionsService( INextBusClient nextBusClient, IRouteRepo routeRepo, IBusStopRepo busStopRepo, IBusPredictionRepo busPredictionRepo, ILogger <PredictionsService> logger ) { _nextBusClient = nextBusClient; _routeRepo = routeRepo; _busStopRepo = busStopRepo; _busPredictionRepo = busPredictionRepo; _logger = logger; }
public BusPredictionsHandler( IDistributedCache cache, IRouteRepo routeRepo, IPredictionsService predictionsService, IBusPredictionRepo predictionRepo, IRouteMessageFormatter routeMessageFormatter, ILogger <BusPredictionsHandler> logger ) { _cache = cache; _routeRepo = routeRepo; _predictionsService = predictionsService; _predictionRepo = predictionRepo; _routeMessageFormatter = routeMessageFormatter; _logger = logger; }