/// <summary>
        /// See interface docs.
        /// </summary>
        /// <param name="icao"></param>
        /// <param name="baseStationAircraft"></param>
        /// <param name="searchedForBaseStationAircraft"></param>
        /// <returns></returns>
        public AircraftOnlineLookupDetail Lookup(string icao, BaseStationAircraft baseStationAircraft, bool searchedForBaseStationAircraft)
        {
            Initialise();

            var result = FetchAircraftDetailsFromCache(icao, baseStationAircraft, searchedForBaseStationAircraft);

            if (RecordNeedsRefresh(result))
            {
                _AircraftOnlineLookup.Lookup(icao);
            }

            return(result);
        }
예제 #2
0
 public void AircraftOnlineLookup_Provider_Filled_On_Call_To_Lookup()
 {
     _Lookup.Lookup("ABC123");
     Assert.IsNotNull(_Lookup.Provider);
 }