public void GetAllTracksAndAddToWptListTest() { // Arrange var wptList = WptListFactory.GetWptList(wptIdents); AddAirways(wptList); var recorder = new StatusRecorder(); var handler = new TrackHandler <PacificTrack>( wptList, wptList.GetEditor(), GetAirportList(), new TrackInUseCollection()); // Act handler.GetAllTracks(DownloaderStub(), recorder); handler.AddToWaypointList(recorder); // Assert Assert.AreEqual(0, recorder.Records.Count); // Verify all tracks are added. AssertAllTracks(wptList); // Check one westbound track. AssertTrackJ(wptList); // Check one eastbound track. AssertTrack11(wptList); // Check connection routes AssertDct(wptList, "DANNO", "BOOKE"); // In track 11 AssertDct(wptList, "BRINY", "ALCOA"); // In track J }
public void GetAllTracksAndAddToWptListTest() { // Arrange var wptList = WptListFactory.GetWptList(WptIdents); var recorder = new StatusRecorder(); var handler = new TrackHandler <NorthAtlanticTrack>( wptList, wptList.GetEditor(), new AirportManager(), new TrackInUseCollection()); // Act handler.GetAllTracks(DownloaderStub(), recorder); handler.AddToWaypointList(recorder); // Assert Assert.AreEqual(0, recorder.Records.Count); // Verify all tracks are added. AssertAllTracks(wptList); // Check one westbound track. AssertTrackC(wptList); // Check one eastbound track. AssertTrackZ(wptList); }
public void GetAllTracksAndAddToWptListTest() { // Arrange var wptList = WptListFactory.GetWptList(wptIdents); AddAirways(wptList); var recorder = new StatusRecorder(); var handler = new TrackHandler <AusTrack>( wptList, wptList.GetEditor(), GetAirportList(), new TrackInUseCollection()); // Act handler.GetAllTracks(DownloaderStub(), recorder); handler.AddToWaypointList(recorder); // Assert Assert.AreEqual(0, recorder.Records.Count); // Verify all tracks are added. AssertAllTracks(wptList); // Check the tracks. AssertTrackMY14(wptList); AssertTrackBP14(wptList); }