示例#1
0
        public void GetAllCoefficientPonderationTest()
        {
            ICalibrageApp serviceCalibrageApp = UtilityTest.CreateInstanceService <ICalibrageApp>();
            var           result = serviceCalibrageApp.GetAllCoeffcientPonderations();

            Assert.IsTrue(result != null);
            Assert.AreEqual(result.Count(), 40);
        }
示例#2
0
        public void GetNoteMaxPge_DesordreStructureMaconnerieBetonTest()
        {
            //Arrang
            var hidalgoService = UtilityTest.CreateInstanceService <IHidalgoApp>();
            //Act
            var resultOfService = hidalgoService.GetNotesMaxForAllDocumentPge_DesordreStructureMaconnerieBeton(EFamilleDesordre.Desordre_structure_Maçonnerie_Beton, ENatureCalibrage.Maçonnerie);

            //Assert
            Assert.AreEqual(resultOfService.Count(), 223);
        }
示例#3
0
        /// <summary>
        /// Méthode de test
        /// </summary>
        public void GetAllDocumentPgeForNatureTravauxEnduitTest()
        {
            //Arrang
            var calculService = UtilityTest.CreateInstanceService <ICalculServiceApp>();

            var listeDocumentPge = calculService.GetAllDocumentPge(Data.Contract.Enum.ENatureCalibrage.Enduit);

            Assert.IsTrue(listeDocumentPge != null);
            Assert.AreEqual(listeDocumentPge.Count(), 109);
        }
示例#4
0
        public void GetNoteMaxPge_FissurationEnduitTest()
        {
            //Arrang
            var hidalgoService = UtilityTest.CreateInstanceService <IHidalgoApp>();

            //Act
            var resultOfService = hidalgoService.GetNotesMaxForAllDocumentPge_Fissuration(EFamilleDesordre.Fissurations, ENatureCalibrage.Enduit);

            //Assert
            Assert.AreEqual(resultOfService.Count(), 109);
        }
示例#5
0
        public void GetNoteMaxAllDocumentPge()
        {
            //Arrang
            var hidalgoService = UtilityTest.CreateInstanceService <IHidalgoApp>();

            //Act
            //var resultOfService = hidalgoService.GetAllDocumentPge();

            //Assert
            //Assert.AreEqual(resultOfService.Count(), 404);
        }
示例#6
0
        public void GetAllLignesAsync()
        {
            //Arrang
            var hidalgoService = UtilityTest.CreateInstanceService <IHidalgoApp>();

            //Act
            var resultOfService = hidalgoService.GetAllLignesAsync();

            //Assert
            Assert.AreEqual(resultOfService.Result.Count(), 62);
        }
示例#7
0
        public void GetAllDocumentPgeEnduitTest()
        {
            //Arrang
            var hidalgoService = UtilityTest.CreateInstanceService <IHidalgoApp>();

            //Act
            var resultOfService = hidalgoService.GetAllDocumentPgeByNatureTravaux(ENatureCalibrage.Enduit);

            //Assert
            Assert.IsTrue(resultOfService != null);
            Assert.AreEqual(resultOfService.Count(), 37);
        }
示例#8
0
        public void GetAllTypeOuvrageTest()
        {
            //Arrang
            var hidalgoService = UtilityTest.CreateInstanceService <IHidalgoApp>();

            //Act
            var resultOfService = hidalgoService.GetAllTypeOuvrages();

            //Assert
            Assert.IsTrue(resultOfService != null);
            Assert.AreEqual(resultOfService.Count(), 68);
        }
示例#9
0
        public void CalculCritereC2Test()
        {
            //Arrang
            var hidalgoService   = UtilityTest.CreateInstanceService <IHidalgoApp>();
            var listeDocumentPge = hidalgoService.GetAllDocumentPgeByNatureTravaux(Data.Contract.Enum.ENatureCalibrage.Maçonnerie);

            //Act
            var resultOfService = hidalgoService.CalculCritereC2(this.GetOneProgrammationToTest(), listeDocumentPge);

            //Assert
            Assert.IsTrue(resultOfService != null);
        }
示例#10
0
        public void GetNoteMaxForAllDocumentPge_IgameRatpTest()
        {
            //Arrang
            var hidalgoService   = UtilityTest.CreateInstanceService <IHidalgoApp>();
            var listeDocumentPge = hidalgoService.GetAllDocumentPgeByNatureTravaux(Data.Contract.Enum.ENatureCalibrage.Maçonnerie);

            //Act
            var resultOfService = hidalgoService.GetNoteMaxForAllDocumentPge_ImageRatp(ENatureCalibrage.Maçonnerie, listeDocumentPge);

            //Assert
            Assert.IsTrue(resultOfService != null);
        }
示例#11
0
        public void CalculPessimisteOptimisteTest()
        {
            //Arrang
            var hidalgoService   = UtilityTest.CreateInstanceService <IHidalgoApp>();
            var listeDocumentPge = hidalgoService.GetAllDocumentPgeByNatureTravaux(Data.Contract.Enum.ENatureCalibrage.Maçonnerie);

            //Act
            hidalgoService.CalculPessimisteOptimiste(this.GetOneProgrammationToTest(), listeDocumentPge);

            //Assert: un fichier est généré
            Assert.IsTrue(true);
        }
示例#12
0
        public void EtapeCalcul2Test()
        {
            //Arrang
            var hidalgoService = UtilityTest.CreateInstanceService <IHidalgoApp>();

            //Act
            var result = hidalgoService.CalculEtape2(this.GetOneProgrammationToTest());

            //Assert
            //TODO YAR: faut s'assurer que le fichier est générer, a cause de pression du temps, j'ai laissé ce traitement après
            Assert.IsTrue(result != null);
        }
示例#13
0
        public void GetNoteMaxForAllDocumentPge_TravauxConnexesTest()
        {
            //Arrang
            var hidalgoService   = UtilityTest.CreateInstanceService <IHidalgoApp>();
            var listeDocumentPge = hidalgoService.GetAllDocumentPgeByNatureTravaux(Data.Contract.Enum.ENatureCalibrage.Maçonnerie);

            //Act
            hidalgoService.CalculNotesParametresCritere4(this.GetOneProgrammationToTest(), listeDocumentPge);

            //Assert
            Assert.IsTrue(true);
        }