public void Setup() { _monitoredArea = Substitute.For <IMonitoredArea>(); _transponderReceiver = Substitute.For <ITransponderReceiver>(); _flightExtractor = new FlightExtractor(); _parseTrackInfo = new ParseTrackInfo(); _timestampFormatter = Substitute.For <ITimestampFormatter>(); _trackObjectifier = new TrackObjectifier(_transponderReceiver, _monitoredArea, _parseTrackInfo, _flightExtractor, _timestampFormatter); _argList = new List <string> { "ATR423;39045;12932;14000;20151006213456789" }; _args = new RawTransponderDataEventArgs(_argList); }
public void Setup() { _monitoredArea = new MonitoredArea(90000, 10000, 20000, 500); _transponderReceiver = Substitute.For <ITransponderReceiver>(); _flightExtractor = new FlightExtractor(); _parseTrackInfo = new ParseTrackInfo(); _timestampFormatter = new TimestampFormatter(); _trackObjectifier = new TrackObjectifier(_transponderReceiver, _monitoredArea, _parseTrackInfo, _flightExtractor, _timestampFormatter); _argList = new List <string> { "ATR423;39045;12932;14000;20151006213456789", "DSD323;40000;12930;15000;20151006213456789" }; _args = new RawTransponderDataEventArgs(_argList); _trackObjectifier.TrackListReady += (sender, updatedArgs) => { _trackList = updatedArgs.TrackList; }; }