Esempio n. 1
0
        public void ValidateTracks_ValidTracks_PrintsCalculatedVelocity()
        {
            //Adds fake data to list
            _fakeTrackDataList.Add(_fakeTrackDataValid1);
            _filtering.ValidateTracks(_fakeTrackDataList);

            _fakeTrackDataList.Clear();
            _fakeTrackDataList.Add(_fakeTrackDataValid2);

            _filtering.ValidateTracks(_fakeTrackDataList);

            _trackRendition.Received().Print(Arg.Is <List <ITrackData> >(data => data[0].Tag == "JAS002" && data[0].Velocity == (int)141));
        }
Esempio n. 2
0
        public void Data(object o, RawTransponderDataEventArgs args)
        {
            List <ITrackData> trackList = new List <ITrackData>();

            trackList.Clear();

            foreach (var data in args.TransponderData)
            {
                trackList.Add(ConvertData(data));
            }

            _filtering.ValidateTracks(trackList);
        }