Ejemplo n.º 1
0
 public AbfahrtenViewModel(IHaltestelle haltestelle)
 {
     Haltestelle = haltestelle;
     _InitializeRbls();
     _InitializeVerkehrsmittel();
     _InitializeFilters();
     _StartRequestIntervall();
 }
        public void TestInitialize()
        {
            _data = new ConcurrentDictionary <int, IHaltestelle>();
            for (int i = 1; i <= 10; i++)
            {
                _data.TryAdd(i, new Haltestelle(i, 123, "Haltestelle " + i.ToString(), new Point()));
            }
            _mapperFictional = new HaltestellenMapper(_data, LinienMapperFactory.Instance);

            _mapperReal = HaltestellenMapperFactory.Instance;

            pointHauptbhfOst = new Point(48.1844162175681, 16.3803748315515);
            pointPraterstern = new Point(48.2185133276323, 16.3923272266447);

            rectHbfPrater = new VtmRectangle(pointPraterstern, pointHauptbhfOst);
            rectHbfHbf    = new VtmRectangle(pointHauptbhfOst, pointHauptbhfOst);

            hauptbahnhof           = new Haltestelle(214461409, 60201349, "Hauptbahnhof", new Point(48.1844162175681, 16.3803748315515));
            hauptbahnhofOst        = new Haltestelle(214461006, 60200905, "Hauptbahnhof Ost", pointHauptbhfOst);
            hauptbahnhofStPoelten  = new Haltestelle(214463796, 60204848, "St Pölten Hauptbahnhof", new Point(48.2081918762008, 15.6240387768482));
            hauptbahnhofWrNeustadt = new Haltestelle(214464157, 60205210, "Wr Neustadt Hauptbahnhof", new Point(47.8116057625811, 16.2341635785245));
            praterstern            = new Haltestelle(214461125, 60201040, "Praterstern", pointPraterstern);
        }
        public void TestInitialize()
        {
            _data = new ConcurrentDictionary<int, IHaltestelle>();
            for (int i = 1; i <= 10; i++) {
                _data.TryAdd(i, new Haltestelle(i, 123, "Haltestelle " + i.ToString(), new Point()));
            }
            _mapperFictional = new HaltestellenMapper(_data, LinienMapperFactory.Instance);

            _mapperReal = HaltestellenMapperFactory.Instance;

            pointHauptbhfOst = new Point(48.1844162175681, 16.3803748315515);
            pointPraterstern = new Point(48.2185133276323, 16.3923272266447);

            rectHbfPrater = new VtmRectangle(pointPraterstern, pointHauptbhfOst);
            rectHbfHbf = new VtmRectangle(pointHauptbhfOst, pointHauptbhfOst);

            hauptbahnhof = new Haltestelle(214461409, 60201349, "Hauptbahnhof", new Point(48.1844162175681, 16.3803748315515));
            hauptbahnhofOst = new Haltestelle(214461006, 60200905, "Hauptbahnhof Ost", pointHauptbhfOst);
            hauptbahnhofStPoelten = new Haltestelle(214463796, 60204848, "St Pölten Hauptbahnhof", new Point(48.2081918762008, 15.6240387768482));
            hauptbahnhofWrNeustadt = new Haltestelle(214464157, 60205210, "Wr Neustadt Hauptbahnhof", new Point(47.8116057625811, 16.2341635785245));
            praterstern = new Haltestelle(214461125, 60201040, "Praterstern", pointPraterstern);
        }
 public AbfahrtenViewModel(IHaltestelle haltestelle)
 {
     Haltestelle = haltestelle;
     _InitializeRbls();
     _InitializeVerkehrsmittel();
     _InitializeFilters();
     _StartRequestIntervall();
 }
Ejemplo n.º 5
0
 public void TestFilter()
 {
     IHaltestelle pratersternHaltestelle = avm.Haltestelle;
     ICollection <VtmResponse> abfahrten = avm.Abfahrten;
 }