Exemple #1
0
 public void SetUp()
 {
     //Stubs
     _transponderReceiver = Substitute.For <ITransponderReceiver>();
     _display             = Substitute.For <IDisplay>();
     _logger = Substitute.For <SWT35_ATM_Handin3.Interfaces.ILogger>();
     //Real
     _airspace           = new Airspace();
     _factory            = new Factory(_transponderReceiver);
     _filter             = new Filter(_airspace, _factory);
     _update             = new Update(_filter);
     _separationDetector = new SeparationDetector(_update, _logger);
     //UUT
     _uut = new TrackRender(_update, _display);
 }
        public void SetUp()
        {
            //Stubs
            _logger = Substitute.For <ILogger>();
            _update = Substitute.For <IUpdate>();
            //Fields
            _point = new Point(15000, 15000, 10000);

            //Unit under test
            _uut = new SeparationDetector(_update, _logger);
            _uut.SeparationsUpdated += (o, args) =>
            {
                _separationData = args.SeparationData;
                ++_nEventsReceived;
            };
        }
Exemple #3
0
        public void SetUp()
        {
            //Stubs
            _transponderReceiver = Substitute.For <ITransponderReceiver>();
            _logger = Substitute.For <SWT35_ATM_Handin3.Interfaces.ILogger>();
            //Real
            _airspace = new Airspace();
            _factory  = new Factory(_transponderReceiver);
            _filter   = new Filter(_airspace, _factory);
            _update   = new Update(_filter);
            //UUT
            _uut = new SeparationDetector(_update, _logger);

            _uut.SeparationsUpdated += (o, args) => {
                _separationList = args.SeparationData;
                ++_nEventReceived;
            };
        }