コード例 #1
0
 public FlightRecordReceiver(ITransponderReceiver transponderReceiver, IFlightRecordFactory flightRecordFlightRecordFactory)
 {
     _receiver = transponderReceiver;
     _receiver.TransponderDataReady += RawDataReceived;
     _flightRecordFactory            = flightRecordFlightRecordFactory;
 }
コード例 #2
0
 public void SetUp()
 {
     _fakeTransponder         = Substitute.For <ITransponderReceiver>();
     _fakeFlightRecordFactory = Substitute.For <IFlightRecordFactory>();
     _sut = new FlightRecordReceiver(_fakeTransponder, _fakeFlightRecordFactory);
 }