Example #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
Example #2
0
        public Livret1VM() : base()
        {
            Livret oReturn = null;

            oReturn          = new Livret1();
            oReturn.oDiplome = Diplome.getDiplomeParDefaut();
            TheItem          = oReturn;
        }
Example #3
0
        public void TestAjoutDiplome()
        {
            DiplomeCand oDipC = oCand.AddDiplome(oDip);

            Diplome oDipDefaut = Diplome.getDiplomeParDefaut();

            Assert.AreEqual(oDip.ID, oDipC.oDiplome.ID);
        }
Example #4
0
        public Livret1VM(Boolean pIsCandidatLocked) : base(pIsCandidatLocked)
        {
            Livret oReturn = null;

            oReturn = new Livret1();


            oReturn.oDiplome = Diplome.getDiplomeParDefaut();
            TheItem          = oReturn;
        }
Example #5
0
        public Livret2VM() : base()
        {
            Livret oReturn = null;

            oReturn          = new Livret2();
            oReturn.oDiplome = Diplome.getDiplomeParDefaut();
            TheItem          = oReturn;

            lstDCLivret      = new ObservableCollection <DCLivretVM>();
            _lstMembreJuryVM = new ObservableCollection <MembreJuryVM>();
        }
Example #6
0
        public void TestCreationL1()
        {
            Livret1 oL1 = new Livret1();

            oL1.Numero = "20190115001";
            Assert.IsFalse(oL1.isClos);
            Assert.IsTrue(oL1.IsNonRecu);
            Assert.IsFalse(oL1.IsContrat);
            Assert.IsFalse(oL1.IsConvention);
            Assert.AreEqual(oL1.oDiplome.ID, Diplome.getDiplomeParDefaut().ID);
            Assert.IsFalse(oL1.IsCNIOK);
            Assert.IsNull(oL1.DateValiditeCNI);
        }
Example #7
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
Example #8
0
        public Livret2VM(Boolean pIsCandidatLocked) : base(pIsCandidatLocked)
        {
            Livret oReturn = null;

            oReturn          = new Livret2();
            oReturn.oDiplome = Diplome.getDiplomeParDefaut();
            TheItem          = oReturn;

            lstDCLivret      = new ObservableCollection <DCLivretVM>();
            _lstMembreJuryVM = new ObservableCollection <MembreJuryVM>();

            //foreach (DomaineCompetence item in TheLivret.oDiplome.lstDomainesCompetences)
            //{
            //    DCLivretVM oDCLivret = new DCLivretVM();
            //    oDCLivret.TheDCLivret.oDomaineCompetence = item;
            //    lstDCLivret.Add(oDCLivret);
            //}
        }
Example #9
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