Ejemplo n.º 1
0
        public void AirnavXRangeMessageConverter_Clears_IsOutOfBand()
        {
            _Json.Aircraft.Add(new AirnavXRangeAircraftJson()
            {
                Icao24 = "A"
            });
            var eventArgs = _Converter.ConvertIntoBaseStationMessageEventArgs(_Json).Single();

            Assert.IsFalse(eventArgs.IsOutOfBand);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Translates the bytes for an <see cref="AirnavXRangeJson"/> JSON object into a list of cooked messages and
 /// raises the appropriate events.
 /// </summary>
 /// <param name="now"></param>
 /// <param name="extractedBytes"></param>
 private void ProcessAirnavXRangeMessageBytes(DateTime now, ExtractedBytes extractedBytes)
 {
     ProcessJsonMessageBytes <AirnavXRangeJson>(
         now,
         extractedBytes,
         _AirnavXRangeJsonSerialiserSettings,
         (json) => _AirnavXRangeMessageConverter.ConvertIntoBaseStationMessageEventArgs(json)
         );
 }