public void StringToPrintSeparationInFile(object sender, SeparationWarningDataEvent e) { foreach (var data in e.TransponderData) { string separationToFile = "Separation condition between " + data.AircraftTag1 + " and " + data.AircraftTag2 + " at " + data.SeparationTimeStamp; _logFileLog.Log(separationToFile); } }
public void StringToPrintSeparationToScreen(object sender, SeparationWarningDataEvent e) { foreach (var data in e.TransponderData) { string separationTiScreen = "WARNING! Separation condition between " + data.AircraftTag1 + " and " + data.AircraftTag2 + " at " + data.SeparationTimeStamp; _logScreenLog.Log(separationTiScreen); } }
public void RunSeparationInvestigation(object sender, UpdatedDataEvent e) { AddSeparations(e.UpdatedData); SeparationController(oldSeparationWarningData, newSeparationWarningData); if (newSeparationWarningData.Count != 0) { SeparationWarningDataEvent?.Invoke(this, (new SeparationWarningDataEvent(newSeparationWarningData))); } }
public void SetUp() { fakeUpdater = Substitute.For <IUpdater>(); _uut = new SeparationInvestigation(fakeUpdater); _event = null; _uut.SeparationWarningDataEvent += (o, args) => { _event = args; }; }