예제 #1
0
        public void TestGetAllStations()
        {
            List <Station> Stations = new List <Station>();

            Stations = travelplanRepro.GetStationsOnly();
            Assert.AreEqual(1, Stations.Count);
        }
        public IActionResult Travelplan()
        {
            if (HttpContext.Session.GetString("Emailadres") == null)
            {
                return(RedirectToAction("Login", "Account"));
            }
            else
            {
                ReadCookie("nsstoelvinder");
                List <Station> stations = travelplanRepo.GetStationsOnly();

                TravelplanViewModel travelplanView = new TravelplanViewModel()
                {
                    Stations = stations
                };
                return(View(travelplanView));
            }
        }