public void TestStapTerugMetDeterminatieTabelCompletedIsFalse() { Leerling l = new Leerling(); l.IsActief = true; l.DeterminatieTabel = determinatieTreeRepository.FindByGraad(l.Graad).FirstOrDefault(); l.GekozenLocatie = new Locatie("Ukkel"); var result = controller.StapTerug(l) as JsonResult; DeterminatieTreeViewModel tabel = (DeterminatieTreeViewModel)result.Data; Assert.IsNotNull(tabel);//? is dit wat ik moet teste, gwn zien da ie geen null is? of specifieke waarde vergelijke? }
public void TestGetDeterminatieTreeMetLeerlingIsActiefGekozenLocatieIsNotNull() { Leerling l = new Leerling(); l.IsActief = true; l.DeterminatieTabel = determinatieTreeRepository.FindByGraad(l.Graad).FirstOrDefault(); l.GekozenLocatie = new Locatie("Ukkel"); var result = controller.GetDeterminatieTree(l) as JsonResult; DeterminatieTreeViewModel tabel = (DeterminatieTreeViewModel)result.Data; Assert.IsNotNull(tabel); }
public void TestGeefOplossing() { Leerling l = new Leerling(); l.IsActief = true; l.DeterminatieTabel = determinatieTreeRepository.FindByGraad(l.Graad).FirstOrDefault(); l.GekozenLocatie = new Locatie("Ukkel"); l.GekozenLocatie.Klimatogram = this.klimatogram;//weet niet of dit helemaal juist is? maar klimatogram mag niet null zijn... var result = controller.GeefOplossing(l) as JsonResult; DeterminatieTreeViewModel tabel = (DeterminatieTreeViewModel)result.Data; Assert.IsNotNull(tabel);//? is dit wat ik moet teste, gwn zien da ie geen null is? of specifieke waarde vergelijke? }