public HauptfensterViewModel(IHaltestellenMapper haltestellenMapper)
     : base()
 {
     if (haltestellenMapper != null) {
         _randomNumber = new Random();
         _haltestellenMapper = haltestellenMapper;
         _haltestellen6 = _haltestellenMapper.GetByNameLength(6);
         _haltestellen7 = _haltestellenMapper.GetByNameLength(7);
         Flap = new List<String> { "VIENNA", "TRAFFIC", "MONITOR" };
         FlapTimer = new Timer(_flapTick, null, 5000, 5000);
     }
 }
Beispiel #2
0
 public HauptfensterViewModel(IHaltestellenMapper haltestellenMapper)
     : base()
 {
     if (haltestellenMapper != null)
     {
         _randomNumber       = new Random();
         _haltestellenMapper = haltestellenMapper;
         _haltestellen6      = _haltestellenMapper.GetByNameLength(6);
         _haltestellen7      = _haltestellenMapper.GetByNameLength(7);
         Flap = new List <String> {
             "VIENNA", "TRAFFIC", "MONITOR"
         };
         FlapTimer = new Timer(_flapTick, null, 5000, 5000);
     }
 }
 public void TestGetByNameLength()
 {
     Assert.AreEqual(0, _mapperFictional.GetByNameLength(0).Count);
     Assert.AreEqual(0, _mapperFictional.GetByNameLength(10).Count);
     Assert.AreEqual(9, _mapperFictional.GetByNameLength(13).Count);
 }