Example #1
0
        public MapBusLoader(IConfiguration configuration, IJsonToObjectConverter converter)
        {
            if (string.IsNullOrWhiteSpace(configuration?.GetMapBusStopList))
            {
                throw new ArgumentNullException(nameof(IConfiguration.GetMapBusStopList));
            }
            _converter = converter;

            _mapStopListUrl = configuration.GetMapBusStopList;
        }
        public BusStopLoader(IConfiguration configuration, IJsonToObjectConverter converter)
        {
            if (string.IsNullOrWhiteSpace(configuration?.GetBusStopList))
            {
                throw new ArgumentNullException("GetBusStopList");
            }
            _converter = converter;

            _busStopListUrl = configuration.GetBusStopList;
        }