コード例 #1
0
        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
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }