Esempio n. 1
0
 public void returnWachtrijLengthTest()
 {
     Wachtrij w = new Wachtrij(wachtrijid, currentTime, currentTime, name);
     int length = w.returnWachtrijLength();
     if (length != 4)
     {
         Assert.Fail();
     }
 }
Esempio n. 2
0
        public void OnPost()
        {
            Name = Request.Form[nameof(Name)];
            List <string> Peercoaches = new List <string>();
            List <Vraag>  Vragen      = new List <Vraag>();

            WachtrijID = 0;
            var datetemp    = Request.Form[nameof(DateAdded)];
            var enddatetemp = Request.Form[nameof(EndDate)];

            DateAdded = Convert.ToDateTime(datetemp);
            EndDate   = Convert.ToDateTime(enddatetemp);
            Wachtrij temp   = new Wachtrij(WachtrijID, DateAdded, EndDate, Name);
            int      length = temp.returnWachtrijLength();

            temp.WachtrijID = length;
            temp.Insert();
        }