public void TestMethod1()
        {
            var stationProcessor = new StationProcessor("ba", "4");
            var stationsForward = stationProcessor.Process(StationDirection.Forward);
            var stationsBackward = stationProcessor.Process(StationDirection.Backward);

            var pn = StationPanBuilder.Build(RouteProcessor.Process(stationsForward, "4").ToStationSide(),
                                             RouteProcessor.Process(stationsBackward, "4").ToStationSide());
        }
        public void ExtractHarmonogram()
        {
            for (int i = 1; i < 213; i++)
            {
                var line = i.ToString();
                var stationProcessor = new StationProcessor("ba", line);
                var stationsForward = stationProcessor.Process(StationDirection.Forward);
                var stationsBackward = stationProcessor.Process(StationDirection.Backward);

                var routes = RouteProcessor.Process(stationsForward, line);

                var routeForward = routes.FirstRegullar();
                var routeBackward = RouteProcessor.Process(stationsBackward, line).FirstRegullar();

                var harmB = ExtractHarmonogramToString(routeBackward);
                var harmF = ExtractHarmonogramToString(routeForward);

                WriteFile(routeForward, harmF);
                WriteFile(routeBackward, harmB);

            }
        }
        public void ExtractNightHarmonogram()
        {
            var data = new int[] { 21, 29, 33, 34, 37, 44, 47, 53, 55, 56, 61, 70, 72, 74, 80, 91, 93, 95, 99 };
            foreach (var i in data)
            {
                var line = "N" + i.ToString();
                var stationProcessor = new StationProcessor("ba", line);
                var stationsForward = stationProcessor.Process(StationDirection.Forward);
                var stationsBackward = stationProcessor.Process(StationDirection.Backward);

                var routeForward = RouteProcessor.Process(stationsForward, line).FirstRegullar();
                var routeBackward = RouteProcessor.Process(stationsBackward, line).FirstRegullar();

                var harmB = ExtractHarmonogramToString(routeBackward);
                var harmF = ExtractHarmonogramToString(routeForward);

                WriteFile(routeForward, harmF);
                WriteFile(routeBackward, harmB);
            }
        }
        public void GetBoardNightNames()
        {
            var data = new int[] { 21, 29, 33, 34, 37, 44, 47, 53, 55, 56, 61, 70, 72, 74, 80, 91, 93, 95, 99 };
            foreach (var i in data)
            {
                var line = "N" + i.ToString();
                var stationProcessor = new StationProcessor("ba", line);
                var stationsForward = stationProcessor.Process(StationDirection.Forward);
                var stationsBackward = stationProcessor.Process(StationDirection.Backward);

                var routeForward = RouteProcessor.Process(stationsForward, line).FirstRegullar();
                var routeBackward = RouteProcessor.Process(stationsBackward, line).FirstRegullar();

                BoardNames.AddRange(ExtractBoardName(routeForward));
                BoardNames.AddRange(ExtractBoardName(routeBackward));
            }

            BoardNames = BoardNames.OrderBy(d => d).Distinct().ToList();
        }
        public void GetBoardNames()
        {
            for (int i = 0; i < 213; i++)
            {
                var line = i.ToString();
                var stationProcessor = new StationProcessor("ba", line);
                var stationsForward = stationProcessor.Process(StationDirection.Forward);
                var stationsBackward = stationProcessor.Process(StationDirection.Backward);

                var routeForward = RouteProcessor.Process(stationsForward, line).FirstRegullar();
                var routeBackward = RouteProcessor.Process(stationsBackward, line).FirstRegullar();

                BoardNames.AddRange(ExtractBoardName(routeForward));
                BoardNames.AddRange(ExtractBoardName(routeBackward));
            }

            BoardNames = BoardNames.OrderBy(d => d).Distinct().ToList();
        }