Ejemplo n.º 1
0
        public void ObtenirPourUneClasseLaMoyenneShouldReturnAverage()
        {
            //Arrange
            SetUp();
            DataSeed();
            //Act
            double moyenne = repoInscriptions.ObtenirPourUneClasseLaMoyenne("W49", "H21");

            //Assert
            Assert.True(moyenne == 59);
        }
        public void MoyenneDeClasse()
        {
            // Arrange
            SetUp();
            repoInscriptions.AjouterInscription(1, "AAA", "A20");
            repoInscriptions.AjouterInscription(2, "AAA", "A20");
            repoInscriptions.AjouterInscription(3, "AAA", "A20");

            repoInscriptions.MettreAJourNoteFinale(1, "AAA", "A20", 60);
            repoInscriptions.MettreAJourNoteFinale(2, "AAA", "A20", 70);
            repoInscriptions.MettreAJourNoteFinale(3, "AAA", "A20", 50);

            //Act
            double moyenne = repoInscriptions.ObtenirPourUneClasseLaMoyenne("AAA", "A20");

            //Assert
            Assert.Equal(60, moyenne);
        }