Пример #1
0
        public DecodingWithMethod(ITransponderReceiver rawReceiver, ITrackReceiver trackReceiver)
        {
            rawReceiver.TransponderDataReady += OnRawData;

            outputTrackReceiver = trackReceiver;

            trackList = new List <TrackData>();
        }
Пример #2
0
        public void Setup()
        {
            _receiver      = Substitute.For <ITransponderReceiver>();
            _trackReceiver = Substitute.For <ITrackReceiver>();
            _uut           = new DecodingWithMethod(_receiver, _trackReceiver);

            _fakeTransponderData = new RawTransponderDataEventArgs(new List <string>()
            {
                "TRK001;12345;67890;12000;20151014123456789"
            }
                                                                   );
        }
Пример #3
0
        public DecodingWithMethod(ITransponderReceiver rawReceiver, ITrackReceiver trackReceiver)
        {
            //When data from flight bleeps in
            rawReceiver.TransponderDataReady += OnRawData;

            _trackList           = new List <TrackData>();
            _outputTrackReceiver = trackReceiver;
            _tempTrackList       = new List <TrackData>();
            _calculateCourse     = new CalculateCourse();
            _calculateVelocity   = new CalculateVelocity();
            _trackValidation     = new TrackValidation();
            _track           = new Track();
            _trackSeperation = new TrackSeperation();
        }