Exemple #1
0
        public void TestValidGetTravelplans()
        {
            Travelplan        travelplan = new Travelplan("Beginstation", "Eindstation");
            List <Travelplan> Stations   = travelplanRepro.GetTravelplans(travelplan);

            Assert.AreEqual(1, Stations.Count);
        }
 public IActionResult Times()
 {
     if (HttpContext.Session.GetString("Emailadres") == null)
     {
         return(RedirectToAction("Login", "Account"));
     }
     else
     {
         Travelplan        travelplan     = new Travelplan(HttpContext.Session.GetString("Beginstation"), HttpContext.Session.GetString("Eindstation"));
         List <Travelplan> tvt            = travelplanRepo.GetTravelplans(travelplan);
         TimesViewModel    timesViewModel = new TimesViewModel
         {
             Trt = tvt
         };
         return(View(timesViewModel));
     }
 }