public void ObtenirPourUneClasseNombreEchecsShouldReturnCountOfCoursUnder60Percent() { //Arrange SetUp(); DataSeed(); //Act int nbEchec = repoInscriptions.ObtenirPourUneClasseNombreEchecs("W49", "H21"); //Assert Assert.Equal(1, nbEchec); }
public void NombreCorrectDechecs() { // Arrange SetUp(); repoInscriptions.AjouterInscription(100, "AAA", "H20"); repoInscriptions.AjouterInscription(200, "AAA", "H20"); repoInscriptions.AjouterInscription(300, "AAA", "H20"); repoInscriptions.MettreAJourNoteFinale(100, "AAA", "H20", 60); repoInscriptions.MettreAJourNoteFinale(200, "AAA", "H20", 70); repoInscriptions.MettreAJourNoteFinale(300, "AAA", "H20", 50); //Act int echecs = repoInscriptions.ObtenirPourUneClasseNombreEchecs("AAA", "H20"); //Assert Assert.Equal(1, echecs); }