public void GetLokalenTest() { // ARRANGE PlannerService service = new PlannerService(ctxDb); ctxDb.Room.Add(new Room { Gebouw = "A", Verdiep = 1, Nummer = "01A", Type = "Aula", Capaciteit = 50 }); ctxDb.Course.Add(new Course { Vakcode = "AAA01A", Titel = "testvak", Studiepunten = 4 }); ctxDb.SaveChanges(); // ACT var list = service.GetLokalen(); // ASSERT Assert.IsNotNull(list); Assert.IsTrue(list.Find(p => p.Capaciteit == 50) != null); Assert.IsTrue(list.Find(p => p.Vakcode == "AAA01A") != null); }