public FlightRecordReceiver(ITransponderReceiver transponderReceiver, IFlightRecordFactory flightRecordFlightRecordFactory) { _receiver = transponderReceiver; _receiver.TransponderDataReady += RawDataReceived; _flightRecordFactory = flightRecordFlightRecordFactory; }
public void SetUp() { _fakeTransponder = Substitute.For <ITransponderReceiver>(); _fakeFlightRecordFactory = Substitute.For <IFlightRecordFactory>(); _sut = new FlightRecordReceiver(_fakeTransponder, _fakeFlightRecordFactory); }