public void SetUp() { _fakeTrackController = Substitute.For <ITrackController>(); _uut = new SeparationMonitor(_fakeTrackController); _uut.OnSeparationEvent += delegate(object sender, SeparationEventArgs e) { nEventsRaised++; }; nEventsRaised = 0; }
public void SetUp() { //fakes _mapDrawer = Substitute.For <IMapDrawer>(); _transponderReceiver = Substitute.For <ITransponderReceiver>(); //included _transponderDataConverter = new TransponderDataConverter(); _trackController = new TrackController(_transponderReceiver, _transponderDataConverter, _mapDrawer); _separationMonitor = new SeparationMonitor(_trackController); _separationMonitor.OnSeparationEvent += delegate { nEventsRaised++; }; nEventsRaised = 0; }
/// <summary> /// Constructor /// </summary> public SeparationLogger(IFileWriter fileWriter, ISeparationMonitor separationMonitor) { FileWriter = fileWriter; separationMonitor.OnSeparationEvent += SeparationHandler; }