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(); }
public void SetUp() { var fakeView = Substitute.For <IView>(); var fakeLogger = Substitute.For <Infrastructure.ILogger>(); _seperation = new SeparationHandler(); var _factory = new FlightRecordFactory(); _ssut_monitoredAirspace = new Airspace(90000, 10000, 20000, 500); _fakeTransponder = Substitute.For <ITransponderReceiver>(); _ssut_flightRecordReceiver = new FlightRecordReceiver(_fakeTransponder, _factory); _sut = new FlightObserver(_ssut_monitoredAirspace, _ssut_flightRecordReceiver, fakeView, _seperation); }
public UpdateController(IView view, SeparationHandler handler) { }
public void SetUp() { _fakeFlightObserver = Substitute.For <IFlightObserver>(); _uut = new SeparationHandler(); }