public void WhenSubmittingStopNameAndPerformingSearch_ShouldReturnListOfStops()
        {
            StopsViewViewModel stopsViewViewModel = new StopsViewViewModel(new RealtimeServiceStub(), null);

            stopsViewViewModel.StopToFind = "Sinsen";

            Assert.IsTrue(stopsViewViewModel.ListOfStops != null);
        }
 public void VerifyRealtimeResponse()
 {
     bool itemChanged = false;
     StopsViewViewModel  viewModel = new StopsViewViewModel(new RealtimeServiceStub(), null);
     viewModel.PropertyChanged += (sender, ea) => itemChanged = true;
     viewModel.StopToFind = "test";
     Assert.IsTrue(itemChanged);
 }
        public void WhenSubmittingStopNameAndPerformingSearch_ShouldFetchStopsFromService()
        {
            var realtimeService = new RealtimeServiceStub();
            StopsViewViewModel viewModel = new StopsViewViewModel(realtimeService, null);

            viewModel.StopToFind = "Sinsen";
            viewModel.FindStops();

            Assert.AreEqual("Sinsen Kirke", viewModel.ListOfStops.First().Name);
        }