public void RecentLastAccessedTime()
        {
            DateTime fakeTime = new DateTime(1990, 1, 1);

            appDataModel.AddFavorite(fakeData.FAVORITE[FavoriteType.Recent], FavoriteType.Recent);

            RecentRouteAndStop fakeTimeRecent = new RecentRouteAndStop();

            fakeTimeRecent.route      = fakeData.FAVORITE[FavoriteType.Recent].route;
            fakeTimeRecent.routeStops = fakeData.FAVORITE[FavoriteType.Recent].routeStops;
            fakeTimeRecent.stop       = fakeData.FAVORITE[FavoriteType.Recent].stop;

            fakeTimeRecent.LastAccessed = fakeTime;

            // Add it now with the new time
            appDataModel.AddFavorite(fakeData.FAVORITE[FavoriteType.Recent], FavoriteType.Recent);

            List <FavoriteRouteAndStop> recents = appDataModel.GetFavorites(FavoriteType.Recent);

            // Check to see that it replaced the original entry instead of making a new entry
            Assert.Equals(recents.Count, 1);

            // Ensure that the time stamp was updated to a newer time
            Assert.Equals(((RecentRouteAndStop)recents[0]).LastAccessed, fakeTime);
        }
        void DetailsPage_Loaded(object sender, RoutedEventArgs e)
        {
            RecentRouteAndStop recent = new RecentRouteAndStop();

            recent.route      = viewModel.CurrentViewState.CurrentRoute;
            recent.routeStops = viewModel.CurrentViewState.CurrentRouteDirection;
            recent.stop       = viewModel.CurrentViewState.CurrentStop;

            ArrivalsListBox.DataContext = viewModel;
            TitleGrid.DataContext       = viewModel;

            viewModel.AddRecent(recent);
        }
        void DetailsPage_Loaded(object sender, RoutedEventArgs e)
        {
            RecentRouteAndStop recent = new RecentRouteAndStop();
            recent.route = viewModel.CurrentViewState.CurrentRoute;
            recent.routeStops = viewModel.CurrentViewState.CurrentRouteDirection;
            recent.stop = viewModel.CurrentViewState.CurrentStop;

            ArrivalsListBox.DataContext = viewModel;
            TitleGrid.DataContext = viewModel;

            viewModel.AddRecent(recent);
        }
        public void RecentLastAccessedTime()
        {
            DateTime fakeTime = new DateTime(1990, 1, 1);

            appDataModel.AddFavorite(fakeData.FAVORITE[FavoriteType.Recent], FavoriteType.Recent);

            RecentRouteAndStop fakeTimeRecent = new RecentRouteAndStop();
            fakeTimeRecent.route = fakeData.FAVORITE[FavoriteType.Recent].route;
            fakeTimeRecent.routeStops = fakeData.FAVORITE[FavoriteType.Recent].routeStops;
            fakeTimeRecent.stop = fakeData.FAVORITE[FavoriteType.Recent].stop;

            fakeTimeRecent.LastAccessed = fakeTime;

            // Add it now with the new time
            appDataModel.AddFavorite(fakeData.FAVORITE[FavoriteType.Recent], FavoriteType.Recent);

            List<FavoriteRouteAndStop> recents = appDataModel.GetFavorites(FavoriteType.Recent);

            // Check to see that it replaced the original entry instead of making a new entry
            Assert.Equals(recents.Count, 1);

            // Ensure that the time stamp was updated to a newer time
            Assert.Equals(((RecentRouteAndStop)recents[0]).LastAccessed, fakeTime);
        }