public void SetUp()
        {
            var fakeView       = Substitute.For <IView>();
            var fakeSeperation = Substitute.For <ISeperationHandler>();
            var fakeLogger     = Substitute.For <Infrastructure.ILogger>();

            var _factory = new FlightRecordFactory();

            _fakeMonitoredAirspace     = Substitute.For <IAirspace>();
            _fakeTransponder           = Substitute.For <ITransponderReceiver>();
            _ssut_flightRecordReceiver = new FlightRecordReceiver(_fakeTransponder, _factory);
            _sut = new FlightObserver(_fakeMonitoredAirspace, _ssut_flightRecordReceiver, fakeView, fakeSeperation);
        }
Пример #2
0
        static void Main(string[] args)
        {
            IFlightRecordFactory  factory             = new FlightRecordFactory();
            IFlightRecordReceiver recordReceiver      = new FlightRecordReceiver(TransponderReceiverFactory.CreateTransponderDataReceiver(), factory);
            IView                view                 = new ConsoleView(new CustomConsole());
            ILogger              logger               = new Logger();
            IAirspace            monitoredAirspace    = new Airspace(90000, 10000, 20000, 500);
            ISeperationHandler   handler              = new SeparationHandler();
            FlightObserver       flightObserver       = new FlightObserver(monitoredAirspace, recordReceiver, view, handler);
            AirspaceEventHandler airspaceEventHandler = new AirspaceEventHandler(flightObserver, view, logger, handler);

            Console.ReadKey();
        }
Пример #3
0
 public void SetUp()
 {
     _fakeTransponder          = Substitute.For <ITransponderReceiver>();
     _ssut_flightRecordFactory = new FlightRecordFactory();
     _sut = new FlightRecordReceiver(_fakeTransponder, _ssut_flightRecordFactory);
 }