public OpenFlightsDataCache(HttpClient httpClient, IMemoryCache memoryCache) { _memoryCache = memoryCache; _httpClient = httpClient; _disposeMode = DisposeModeEnum.DoNothing; IDataAccessFactory factory = new DataAccessFactory(_httpClient, _memoryCache); _airportRepository = factory.CreateAirportRepository(); _aircraftRepository = factory.CreateAircraftRepository(); _routeRepository = factory.CreateRouteRepository(); _airlineRepository = factory.CreateAirlineRepository(); }