Ejemplo n.º 1
0
        public void SetUp()
        {
            _fakeConverter = Substitute.For <ITransponderDataConverter>();
            _fakeReceiver  = Substitute.For <ITransponderReceiver>();
            _fakeMapDrawer = Substitute.For <IMapDrawer>();

            _uut = new TrackController(_fakeReceiver, _fakeConverter, _fakeMapDrawer);
        }
Ejemplo n.º 2
0
        public void SetUp()
        {
            //fakes
            _mapDrawer           = Substitute.For <IMapDrawer>();
            _transponderReceiver = Substitute.For <ITransponderReceiver>();

            //included
            _transponderDataConverter = new TransponderDataConverter();
            _trackController          = new TrackController(_transponderReceiver, _transponderDataConverter, _mapDrawer);
        }
Ejemplo n.º 3
0
        public void SetUp()
        {
            //fakes
            _mapDrawer           = Substitute.For <IMapDrawer>();
            _transponderReceiver = Substitute.For <ITransponderReceiver>();

            //included
            _transponderDataConverter = new TransponderDataConverter();
            _trackController          = new TrackController(_transponderReceiver, _transponderDataConverter, _mapDrawer);
            nEventsRaised             = 0;

            _trackController.OnTrackUpdated += delegate { nEventsRaised++; };
        }
        public void SetUp()
        {
            //fakes
            _mapDrawer           = Substitute.For <IMapDrawer>();
            _transponderReceiver = Substitute.For <ITransponderReceiver>();

            //included
            _transponderDataConverter = new TransponderDataConverter();
            _trackController          = new TrackController(_transponderReceiver, _transponderDataConverter, _mapDrawer);
            _separationMonitor        = new SeparationMonitor(_trackController);

            _separationMonitor.OnSeparationEvent += delegate { nEventsRaised++; };

            nEventsRaised = 0;
        }
Ejemplo n.º 5
0
        public TrackController(ITransponderReceiver transponderReceiver, ITransponderDataConverter dataConverter, IMapDrawer drawer)
        {
            _swCornorCoordinate = new Coordinate()
            {
                x = 10000, y = 10000
            };
            _neCornerCoordinate = new Coordinate()
            {
                x = 90000, y = 90000
            };

            _lowerAltitudeBoundary = 500;
            _upperAltitudeBoundary = 20000;

            DataConverter = dataConverter;
            MapDrawer     = drawer;

            transponderReceiver.TransponderDataReady += TransponderDataHandler;
        }
Ejemplo n.º 6
0
 public void SetUp()
 {
     _transponderReceiver = Substitute.For <ITransponderReceiver>();
     _uut = new DataConverter(_transponderReceiver);
 }