Beispiel #1
0
        static void Main(string[] args)
        {
            IDisplay             display             = new Display();
            ITransponderReceiver transponderReceiver = TransponderReceiverFactory.CreateTransponderDataReceiver();
            IFactory             factory             = new Factory(transponderReceiver);
            IAirspace            airspace            = new Airspace();
            IFilter             filter             = new Filter(airspace, factory);
            IUpdate             update             = new Update(filter);
            ILogger             logger             = new Logger();
            ISeparationDetector separationDetector = new SeparationDetector(update, logger);

            ITrackRender      trackRender      = new TrackRender(update, display);
            ISeparationRender separationRender = new SeparationRender(separationDetector, display);

            Console.ReadKey();
        }
        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;
            };
        }