Ejemplo n.º 1
0
        public void ValiderL2ValidationRefuseTest()
        {
            int nId = 0;

            nId = oCand.ID;
            Diplome oDipDefault = Diplome.getDiplomeParDefaut();
            Livret2 oL2         = new Livret2(oDipDefault);

            // Tous les DC sont a Valider
            foreach (DCLivret item in oL2.lstDCLivrets)
            {
                item.IsAValider = true;
            }

            oL2.create1erJury();
            oL2.oCandidat = oCand;
            oCand.lstLivrets2.Add(oL2);
            // Refus de validation
            oL2.get1erJury().Decision = "20-Refusé";
            foreach (DCLivret item in oL2.lstDCLivrets)
            {
                item.Decision = "20-Refusé";
            }

            oL2.ValiderLivret2();

            Assert.AreEqual(1, oCand.lstDiplomes.Count);
            Assert.AreEqual("Refusé", oCand.lstDiplomes[0].Statut);
        }//ValiderL2ValidationRefuseTest
Ejemplo n.º 2
0
        public void ValiderL2ValidationEcoursTest()
        {
            int nId = 0;

            nId = oCand.ID;
            Diplome oDipDefault = Diplome.getDiplomeParDefaut();
            Livret2 oL2         = new Livret2(oDipDefault);

            oL2.create1erJury();
            oL2.oCandidat = oCand;
            oCand.lstLivrets2.Add(oL2);

            oL2.ValiderLivret2();

            Assert.AreEqual(1, oCand.lstDiplomes.Count);
            Assert.AreEqual("En cours", oCand.lstDiplomes[0].Statut);
        }//ValiderL2ValidationRefuseTest
Ejemplo n.º 3
0
        public void ValiderL2ValidationPArtielleTest()
        {
            int nId = 0;

            nId = oCand.ID;
            Diplome oDipDefault = Diplome.getDiplomeParDefaut();
            Livret2 oL2         = new Livret2(oDipDefault);

            // Tous les DC sont a Valider
            foreach (DCLivret item in oL2.lstDCLivrets)
            {
                item.IsAValider = true;
            }
            oL2.create1erJury();
            oL2.oCandidat = oCand;
            oCand.lstLivrets2.Add(oL2);
            // Validation Complete
            oL2.get1erJury().Decision = "30-Validation Partielle";
            Boolean b1 = true;

            foreach (DCLivret item in oL2.lstDCLivrets)
            {
                if (b1)
                {
                    item.Decision = "10-Validé";
                    b1            = false;
                }
                else
                {
                    item.Decision = "20-Refusé";
                }
            }

            oL2.ValiderLivret2();

            Assert.AreEqual(1, oCand.lstDiplomes.Count);
            Assert.AreEqual("Validé partiellement", oCand.lstDiplomes[0].Statut);
        }//ValiderL2Test