public async Task AddStudsToEachCmTest()
        {
            // ARRANGE
            PlannerService service = new PlannerService(ctxDb);

            int cmId = AddCm();

            int courseId = ctxDb.Course.Where(c => c.Vakcode == "MGP01A").FirstOrDefault().Id;

            ctxDb.Users.Add(new ApplicationUser {
                UserName = "******", Email = "*****@*****.**", GeboorteDatum = new DateTime(1998, 09, 21), Naam = "Claes", VoorNaam = "Thomas", EmailConfirmed = true
            });
            ctxDb.Users.Add(new ApplicationUser {
                UserName = "******", Email = "*****@*****.**", GeboorteDatum = new DateTime(1998, 09, 21), Naam = "Claes", VoorNaam = "Thomas", EmailConfirmed = true
            });
            ctxDb.Users.Add(new ApplicationUser {
                UserName = "******", Email = "*****@*****.**", GeboorteDatum = new DateTime(1998, 09, 21), Naam = "Claes", VoorNaam = "Thomas", EmailConfirmed = true
            });
            ctxDb.SaveChanges();

            string user1Id = ctxDb.Users.Where(u => u.UserName == "r0000001").FirstOrDefault().Id;
            string user2Id = ctxDb.Users.Where(u => u.UserName == "r0000002").FirstOrDefault().Id;
            string user3Id = ctxDb.Users.Where(u => u.UserName == "r0000003").FirstOrDefault().Id;

            ctxDb.CourseUser.Add(new CourseUser {
                CourseId = courseId, ApplicationUserId = user1Id, GoedGekeurd = true, AfwijzingBeschr = null
            });
            ctxDb.CourseUser.Add(new CourseUser {
                CourseId = courseId, ApplicationUserId = user2Id, GoedGekeurd = true, AfwijzingBeschr = null
            });
            ctxDb.CourseUser.Add(new CourseUser {
                CourseId = courseId, ApplicationUserId = user3Id, GoedGekeurd = false, AfwijzingBeschr = null
            });
            ctxDb.SaveChanges();

            var list = service.GetStudsInEachCm(courseId);

            list[1].IsSelected = true;

            // ACT
            var result = await service.AddStudsToEachCm(list, courseId);

            // ASSERT
            Assert.IsTrue(ctxDb.CourseMomentUsers.Any());
            Assert.AreEqual(user2Id, ctxDb.CourseMomentUsers.FirstOrDefault().ApplicationUserId);
        }