public void EditPlanningTest()
        {
            // ARRANGE
            PlannerService service = new PlannerService(ctxDb);
            Course         course1 = new Course {
                Vakcode = "BBB01B", Titel = "testvak", Studiepunten = 4
            };

            ctxDb.Course.Add(course1);

            Room room1 = new Room {
                Gebouw = "B", Verdiep = 0, Nummer = "01", Type = "Lokaal", Capaciteit = 10
            };

            ctxDb.Room.Add(room1);

            int cmId = AddCm();

            string userId = ctxDb.Users.Where(u => u.UserName == "r0664186").FirstOrDefault().Id;

            int      newCourseId    = ctxDb.Course.Where(c => c.Vakcode == "BBB01B").FirstOrDefault().Id;
            int      newRoomId      = ctxDb.Room.Where(r => r.Gebouw == "B" & r.Verdiep == 0 & r.Nummer == "01").FirstOrDefault().Id;
            var      newUser        = ctxDb.Users.Find(userId);
            DateTime newDatum       = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
            string   newDatumString = newDatum.ToString("yyyy-MM-dd");
            string   newStart       = "13:00";
            double   newDuratie     = 1.0;
            string   newLessenlijst = "Editplanning test lesmoment";

            // ACT
            service.EditPlanning(cmId, newCourseId, newDatumString, newStart, newDuratie, newRoomId, newLessenlijst, newUser);

            // ASSERT
            var newCm = ctxDb.CourseMoment.Find(cmId);

            Assert.AreEqual(newCourseId, newCm.CourseId);
            Assert.AreEqual(newRoomId, newCm.RoomId);
            Assert.AreEqual(newUser.Id, newCm.ApplicationUserId);
            Assert.AreEqual(ctxDb.Schedule.Where(s => s.Datum == newDatum).FirstOrDefault().Id, newCm.ScheduleId);
            Assert.AreEqual(newLessenlijst, newCm.LessenLijst);
        }