public void GeefSessieGebruiker_Test() { SessieGebruiker sg = new SessieGebruiker(Sessie1, Gebruiker); Sessie1.SchrijfGebruikerIn(sg, Gebruiker); Assert.Equal(sg.GebruikerId, Sessie1.GeefSessieGebruiker(Gebruiker).GebruikerId); }
public void GebruikerIsIngeschreven_Test() { SessieGebruiker sg = new SessieGebruiker(Sessie1, Gebruiker); Sessie1.SchrijfGebruikerIn(sg, Gebruiker); Assert.True(Sessie1.GebruikerIsIngeschreven(Gebruiker)); }
public void SchrijfGebruikerIn_Test() { Assert.Equal(0, Gebruiker.SessiesIngeschreven.Count); Assert.Equal(0, Sessie1.AantalIngeschrevenGebruikers); SessieGebruiker sg = new SessieGebruiker(Sessie1, Gebruiker); Sessie1.SchrijfGebruikerIn(sg, Gebruiker); Assert.Equal(1, Gebruiker.SessiesIngeschreven.Count); Assert.Equal(1, Sessie1.AantalIngeschrevenGebruikers); }