public void SetUp() { _fakeView = Substitute.For <IView>(); _fakeSeperation = Substitute.For <ISeperationHandler>(); _fakeFlight = Substitute.For <IFlightRecordReceiver>(); _fakeMonitoredAirspace = Substitute.For <IAirspace>(); _uut = new FlightObserver(_fakeMonitoredAirspace, _fakeFlight, _fakeView, _fakeSeperation); }
public FlightObserver(IAirspace monitoredAirspace, IFlightRecordReceiver recordReceiver, IView view, ISeperationHandler handler) { _recordReceiver = recordReceiver; _recordReceiver.FlightRecordReceived += UpdateFlightTracks; _view = view; _handler = handler; _tracks = new List <IFlightTrack>(); _monitoredAirspace = monitoredAirspace; }