Exemple #1
0
        public void AffecterHoraireDeTravailCommand()
        {
            string randomData = Guid.NewGuid().ToString();
            ActionResult <AjouterTypePlageHoraireResult> newTypePlageHorraire = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret)
                                                                                .Create <ActionResult <AjouterTypePlageHoraireResult>, AjouterTypePlageHoraireArgs>(Urls.AjouterTypePlageHoraireCommand)
                                                                                .Execute(new AjouterTypePlageHoraireArgs()
            {
                VersionDate     = DateTime.Now,
                LibelleLong     = "testLibLong-" + randomData,
                LibelleCourt    = "testLibCourt-" + randomData,
                Presence        = true,
                ImpactCompteurs = true
            });



            ActionResult <AffecterHoraireDeTravailCommandResult> result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret)
                                                                          .Create <ActionResult <AffecterHoraireDeTravailCommandResult>, AffecterHoraireDeTravailCommandArgs>(Urls.AffecterHoraireDeTravailCommand)
                                                                          .Execute(new AffecterHoraireDeTravailCommandArgs()
            {
                SalarieId              = 442,
                Date                   = DateTime.Now,
                HeureDebut             = new TimeSpan(9, 0, 0),
                HeureFin               = new TimeSpan(18, 0, 0),
                AntenneId              = null,
                TypeHoraireDeTravailId = newTypePlageHorraire.Entity.Id
            });

            Assert.Equal(true, result.Succeeded);
        }
        public void GetPlansSoinsParId()
        {
            ActionResult <GetPlansSoinsParIdQueryResult> result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <ActionResult <GetPlansSoinsParIdQueryResult>, GetPlansSoinsParIdQueryArg>(Urls.GetPlansSoinsParId).Execute(new GetPlansSoinsParIdQueryArg()
            {
                PlanSoinsId = 13,
            });

            Assert.NotNull(result);
            Assert.True(result.Succeeded);

            Assert.True(result.Entity.PlanSoinsId != default(decimal));
            Assert.True(result.Entity.SejourId != default(decimal));
            Assert.True(result.Entity.DateDebut.HasValue);
            Assert.True(result.Entity.TypeIntervenantId != default(decimal));

            foreach (LignePlanSoins ligne in result.Entity.Lignes)
            {
                Assert.True(ligne.LignePlanSoinsId != default(decimal));

                foreach (Acte acte in ligne.Actes)
                {
                    Assert.True(acte.ActeId != default(decimal));
                    Assert.False(string.IsNullOrWhiteSpace(acte.Libelle));
                }
            }
        }
        public void GetPlansSoinsParSejourEtDates()
        {
            ActionResult <GetPlansSoinsParSejoursEtDatesQueryResult[]> result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <ActionResult <GetPlansSoinsParSejoursEtDatesQueryResult[]>, GetPlansSoinsParSejoursEtDatesQueryArg>(Urls.GetPlansSoinsParSejoursEtDates).Execute(new GetPlansSoinsParSejoursEtDatesQueryArg()
            {
                SejourIds = new decimal[0],
                DateDebut = new DateTime(2017, 1, 1),
            });

            Assert.NotNull(result);
            Assert.True(result.Succeeded);

            foreach (GetPlansSoinsParSejoursEtDatesQueryResult ps in result.Entity)
            {
                Assert.True(ps.PlanSoinsId != default(decimal));
                Assert.True(ps.SejourId != default(decimal));
                Assert.True(ps.DateDebut.HasValue);
                Assert.True(ps.TypeIntervenantId != default(decimal));

                foreach (LignePlanSoins ligne in ps.Lignes)
                {
                    Assert.True(ligne.LignePlanSoinsId != default(decimal));

                    foreach (Acte acte in ligne.Actes)
                    {
                        Assert.True(acte.ActeId != default(decimal));
                        Assert.False(string.IsNullOrWhiteSpace(acte.Libelle));
                    }
                }
            }
        }
 public void GetTourneeContenuParIdQuery()
 {
     GetTourneeContenuParIdQueryResult result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <GetTourneeContenuParIdQueryResult, GetTourneeContenuParIdQueryArgs>(Urls.GetActeParId).Execute(new GetTourneeContenuParIdQueryArgs
     {
         Id    = Guid.Parse("32B26359-417A-4690-BD8C-0AF2D4F8EDA0"),
         Debut = new DateTime(2017, 06, 19),
         Fin   = new DateTime(2017, 06, 19)
     });
 }
        public void CreerVille()
        {
            ActionResult <CreerVilleCommandResult> result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <ActionResult <CreerVilleCommandResult>, CreerVilleCommandArg>(Urls.CreerVille).Execute(new CreerVilleCommandArg()
            {
                CodePostal = "69001",
                villeNom   = "Gotham City 2"
            });

            Assert.NotNull(result);
            Assert.True(result.Succeeded);
        }
Exemple #6
0
        public void GetAntennes()
        {
            GetAntenneQueryResult[] result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <GetAntenneQueryResult[]>(Urls.GetAntennes).Execute();

            Assert.NotNull(result);

            foreach (GetAntenneQueryResult antenne in result)
            {
                Assert.True(antenne.AntenneId != default(decimal));
                Assert.False(string.IsNullOrWhiteSpace(antenne.RaisonSociale));
            }
        }
        public void GetFonctions()
        {
            GetFonctionQueryResult[] result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <GetFonctionQueryResult[]>(Urls.GetFonction).Execute();

            Assert.NotNull(result);

            foreach (GetFonctionQueryResult civilite in result)
            {
                Assert.True(civilite.Id != default(decimal));
                Assert.False(string.IsNullOrWhiteSpace(civilite.Libelle));
            }
        }
        public void GetEtablissementsGeographiques()
        {
            GetEtablissementGeographiqueQueryResult[] result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <GetEtablissementGeographiqueQueryResult[]>(Urls.GetEtablissementGeographique).Execute();

            Assert.NotNull(result);

            foreach (GetEtablissementGeographiqueQueryResult eta in result)
            {
                Assert.True(eta.EtablissementGeographiqueId != default(decimal));
                Assert.False(string.IsNullOrWhiteSpace(eta.Libelle));
            }
        }
        public void GetTypesIntervenants()
        {
            ActionResult <GetTypesIntervenantsQueryResult[]> result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <ActionResult <GetTypesIntervenantsQueryResult[]> >(Urls.GetTypesIntervenants).Execute();

            Assert.NotNull(result);
            Assert.True(result.Succeeded);

            foreach (GetTypesIntervenantsQueryResult typeInterv in result.Entity)
            {
                Assert.True(typeInterv.TypeIntervenantId != default(decimal));
                Assert.False(string.IsNullOrWhiteSpace(typeInterv.Libelle));
            }
        }
        public void GetTypesSalaries()
        {
            GetTypesSalariesQueryResult[] result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <GetTypesSalariesQueryResult[]>(Urls.GetTypesSalaries).Execute();

            Assert.NotNull(result);

            foreach (GetTypesSalariesQueryResult typeSal in result)
            {
                Assert.True(typeSal.Id != default(decimal));
                Assert.False(string.IsNullOrWhiteSpace(typeSal.Libelle));
                Assert.False(string.IsNullOrWhiteSpace(typeSal.Color));
            }
        }
        public void GetVilles()
        {
            GetVillesParCodePostalQueryResult[] result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <GetVillesParCodePostalQueryResult[], GetVillesParCodePostalQueryArg>(Urls.GetVillesParCodePostal).Execute(new GetVillesParCodePostalQueryArg()
            {
                CodePostal = "69001"
            });

            Assert.NotNull(result);

            Assert.True(result[0].Id != default(decimal));
            Assert.True(result[0].CodePostal == "69001");
            Assert.False(string.IsNullOrWhiteSpace(result[0].Nom));
            Assert.True(result[0].Nom.ToLower() == "lyon");
        }
Exemple #12
0
        public void GetSejoursParIdExterne()
        {
            ActionResult <GetSejoursParIdExterneQueryResult> result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <ActionResult <GetSejoursParIdExterneQueryResult>, GetSejoursParIdExterneQueryArg>(Urls.GetSejourParIdExterne).Execute(new GetSejoursParIdExterneQueryArg()
            {
                IdentifiantExterne = "123456789",
            });

            Assert.NotNull(result);
            Assert.True(result.Succeeded);

            Assert.True(result.Entity.SejourId != default(decimal));
            Assert.True(result.Entity.PatientId != default(decimal));
            Assert.True(result.Entity.DateDebut.HasValue);
        }
        public void GetActeParId()
        {
            ActionResult <GetActeParIdQueryResult> result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <ActionResult <GetActeParIdQueryResult>, GetActeParIdQueryArg>(Urls.GetActeParId).Execute(new GetActeParIdQueryArg()
            {
                ActeId = 138
            });

            Assert.NotNull(result);
            Assert.True(result.Succeeded);

            Assert.True(result.Entity.ActeId != default(int));
            Assert.True(result.Entity.TypeIntervenantId != default(decimal));
            Assert.False(string.IsNullOrWhiteSpace(result.Entity.Libelle));
        }
Exemple #14
0
        public void CreerAntenne()
        {
            ActionResult <decimal> result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <ActionResult <decimal>, CreerAntenneCommandArg>(Urls.CreerAntenne).Execute(new CreerAntenneCommandArg()
            {
                EtablissementGeographiqueId = 1,
                RaisonSociale        = "toujours raison",
                EstAntennePrincipale = true,
                Adresse1             = "adresse 1",
                VilleId           = 29912,
                Livraison_VilleId = 29912
            });

            Assert.NotNull(result);
            Assert.True(result.Succeeded);
        }
Exemple #15
0
        public void GetSalaries()
        {
            GetSalarieParIdQueryResult[] result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <GetSalarieParIdQueryResult[], GetSalarieParIdQueryArg>(Urls.GetSalariesParIds).Execute(new GetSalarieParIdQueryArg()
            {
                SalarieIds = new decimal[] { 442 }
            });

            Assert.NotNull(result);
            Assert.True(result.Length == 1);

            Assert.True(result[0].Id != default(decimal));
            Assert.True(result[0].TypeSalarieId != default(decimal));
            Assert.False(string.IsNullOrWhiteSpace(result[0].Nom));
            Assert.False(string.IsNullOrWhiteSpace(result[0].Prenom));
        }
        public void GetPatients()
        {
            ActionResult <GetPatientParIdsQueryResult[]> result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <ActionResult <GetPatientParIdsQueryResult[]>, GetPatientParIdsQueryArg>(Urls.GetPatientParIds).Execute(new GetPatientParIdsQueryArg()
            {
                PatientIds = new decimal[] { 610 }
            });

            Assert.NotNull(result);
            Assert.True(result.Succeeded);

            Assert.True(result.Entity[0].PatientId != default(decimal));
            Assert.False(string.IsNullOrWhiteSpace(result.Entity[0].Sexe));
            Assert.False(string.IsNullOrWhiteSpace(result.Entity[0].Civilite));
            Assert.False(string.IsNullOrWhiteSpace(result.Entity[0].Nom));
            Assert.False(string.IsNullOrWhiteSpace(result.Entity[0].Prenom));
        }
Exemple #17
0
        public void GetPassagePonctuelParSejourEtDates()
        {
            GetPassagePonctuelParSejourEtDatesQueryResult[] result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <GetPassagePonctuelParSejourEtDatesQueryResult[], GetPassagePonctuelParSejourEtDatesQueryArg>(Urls.GetPassagePonctuelParSejourEtDate).Execute(new GetPassagePonctuelParSejourEtDatesQueryArg()
            {
                SejourId  = 6248,
                DateDebut = new DateTime(2017, 1, 1)
            });

            Assert.NotNull(result);

            foreach (GetPassagePonctuelParSejourEtDatesQueryResult passage in result)
            {
                Assert.True(passage.Id != default(decimal));
                Assert.True(passage.SejourId != default(decimal));
            }
        }
Exemple #18
0
        public void AjouterTypePlageHoraireCommand()
        {
            string randomData = Guid.NewGuid().ToString();
            ActionResult <AjouterTypePlageHoraireResult> result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret)
                                                                  .Create <ActionResult <AjouterTypePlageHoraireResult>, AjouterTypePlageHoraireArgs>(Urls.AjouterTypePlageHoraireCommand)
                                                                  .Execute(new AjouterTypePlageHoraireArgs()
            {
                VersionDate     = DateTime.Now,
                LibelleLong     = "testLibLong-" + randomData,
                LibelleCourt    = "testLibCourt-" + randomData,
                Presence        = true,
                ImpactCompteurs = true
            });

            Assert.Equal(true, result.Succeeded);
        }
Exemple #19
0
        public void CreerSalarie()
        {
            ActionResult <CreerSalarieCommandResult> result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <ActionResult <CreerSalarieCommandResult>, CreerSalarieCommandArg>(Urls.CreerSalarie).Execute(new CreerSalarieCommandArg()
            {
                Matricule     = "123456789",
                CiviliteId    = 1,
                Nom           = "SalarieNOM",
                Prenom        = "SalariePRENOM",
                SexeId        = SexeIds.Feminin,
                Adresse1      = "salarie adresse 1",
                VilleId       = 29912,
                TypeSalarieId = 22
            });

            Assert.NotNull(result);
        }
Exemple #20
0
        public void GetSejoursParDate()
        {
            ActionResult <GetSejoursParDateQueryResult[]> result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret).Create <ActionResult <GetSejoursParDateQueryResult[]>, GetSejoursParDateQueryArg>(Urls.GetSejoursParDate).Execute(new GetSejoursParDateQueryArg()
            {
                DateDebut = new DateTime(2017, 1, 1),
                DateFin   = new DateTime(2017, 6, 1),
            });

            Assert.NotNull(result);
            Assert.True(result.Succeeded);

            foreach (GetSejoursParDateQueryResult sejour in result.Entity)
            {
                Assert.True(sejour.SejourId != default(decimal));
                Assert.True(sejour.PatientId != default(decimal));
                Assert.True(sejour.DateDebut.HasValue);
            }
        }
Exemple #21
0
        public void GetTypePlageHoraireParNomQuery()
        {
            string randomData = Guid.NewGuid().ToString();

            ActionResult <AjouterTypePlageHoraireResult> newTypePlageHorraire = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret)
                                                                                .Create <ActionResult <AjouterTypePlageHoraireResult>, AjouterTypePlageHoraireArgs>(Urls.AjouterTypePlageHoraireCommand)
                                                                                .Execute(new AjouterTypePlageHoraireArgs()
            {
                VersionDate     = DateTime.Now,
                LibelleLong     = "testLibLong-" + randomData,
                LibelleCourt    = "testLibCourt-" + randomData,
                Presence        = true,
                ImpactCompteurs = true
            });

            GetTypePlageHoraireParNomResult result = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret)
                                                     .Create <GetTypePlageHoraireParNomResult, GetTypePlageHoraireParNomArgs>(Urls.GetTypePlageHoraireParNomQuery)
                                                     .Execute(new GetTypePlageHoraireParNomArgs()
            {
                Libelle = "testLibLong-" + randomData,
            });

            Assert.Equal(newTypePlageHorraire.Entity.Id, result.Id);
        }
        public void ScenarioTournee()
        {
            AtHomeClientFactory factory = new AtHomeClientFactory(Credentials.UniqueCode, Credentials.ApiKey, Credentials.ApiSecret);

            //CREER PASSAGE 1
            ActionResult <CreerPassagePonctuelResult> creerPassagePonctuelResult = factory.Create <ActionResult <CreerPassagePonctuelResult>, CreerPassagePonctuelArg>(Urls.CreerPassagePonctuel).Execute(new CreerPassagePonctuelArg
            {
                SejourId          = SejourId1,
                Date              = Date,
                HeureDebut        = Debut,
                HeureFin          = Fin,
                Commentaire       = Commentaire,
                Obligatoire       = true,
                TypeIntervenantId = TypeIntervenant,
                ActeIds           = ActeIds
            });
            decimal passagePonctuel1Id = creerPassagePonctuelResult.Entity.PassagePonctuelId;

            Assert.True(creerPassagePonctuelResult.Succeeded);

            //CREER PASSAGE 2
            ActionResult <CreerPassagePonctuelResult> creerPassagePonctuel2Result = factory.Create <ActionResult <CreerPassagePonctuelResult>, CreerPassagePonctuelArg>(Urls.CreerPassagePonctuel).Execute(new CreerPassagePonctuelArg
            {
                SejourId          = SejourId2,
                Date              = Date,
                HeureDebut        = Debut,
                HeureFin          = Fin,
                Commentaire       = Commentaire,
                Obligatoire       = true,
                TypeIntervenantId = TypeIntervenant,
                ActeIds           = ActeIds
            });
            decimal passagePonctuel2Id = creerPassagePonctuel2Result.Entity.PassagePonctuelId;

            Assert.True(creerPassagePonctuel2Result.Succeeded);

            //CREER TOURNEE 1
            ActionResult <CreerTourneeCommandResult> creerTournee1Result = factory.Create <ActionResult <CreerTourneeCommandResult>, CreerTourneeCommandArgs>(Urls.CreerTournee).Execute(new CreerTourneeCommandArgs
            {
                Nom       = NomTournee1,
                AntenneId = null
            });

            Assert.NotNull(creerTournee1Result);

            //CREER TOURNEE 2
            ActionResult <CreerTourneeCommandResult> creerTournee2Result = factory.Create <ActionResult <CreerTourneeCommandResult>, CreerTourneeCommandArgs>(Urls.CreerTournee).Execute(new CreerTourneeCommandArgs
            {
                Nom       = NomTournee2,
                AntenneId = null
            });

            Assert.NotNull(creerTournee1Result);

            //GET TOURNEE 1
            GetTourneeParNomQueryResult[] getTournee1Result = factory.Create <GetTourneeParNomQueryResult[], GetTourneeParNomQueryArgs>(Urls.GetTourneeParNomQuery).Execute(new GetTourneeParNomQueryArgs {
                Nom = NomTournee1
            });
            Assert.NotNull(getTournee1Result);
            Assert.True(getTournee1Result.Count() == 1);
            Guid tournee1Id = getTournee1Result.Single().Id;

            //GET TOURNEE 2
            GetTourneeParNomQueryResult[] getTournee2Result = factory.Create <GetTourneeParNomQueryResult[], GetTourneeParNomQueryArgs>(Urls.GetTourneeParNomQuery).Execute(new GetTourneeParNomQueryArgs {
                Nom = NomTournee2
            });
            Assert.NotNull(getTournee1Result);
            Assert.True(getTournee2Result.Count() == 1);
            Guid tournee2Id = getTournee2Result.Single().Id;

            //AFFECTER PASSAGE 1 A TOURNEE 1
            ActionResult affecterPassageATournee1Result = factory.Create <ActionResult, AffecterPassageATourneeCommandArg>(Urls.AffecterPassageTournee).Execute(new AffecterPassageATourneeCommandArg
            {
                Date        = Date,
                EstPonctuel = true,
                PassageId   = passagePonctuel1Id,
                TourneeId   = tournee1Id
            });

            Assert.True(affecterPassageATournee1Result.Succeeded);

            //AFFECTER PASSAGE 2 A TOURNEE 2
            ActionResult affecterPassageATournee2Result = factory.Create <ActionResult, AffecterPassageATourneeCommandArg>(Urls.AffecterPassageTournee).Execute(new AffecterPassageATourneeCommandArg
            {
                Date        = Date,
                EstPonctuel = true,
                PassageId   = passagePonctuel2Id,
                TourneeId   = tournee2Id
            });

            Assert.True(affecterPassageATournee2Result.Succeeded);

            //CHECK CONTENU TOURNEE 1
            GetTourneeContenuParIdQueryResult[] getTourneeContenuParIdQueryResult1 = factory.Create <GetTourneeContenuParIdQueryResult[], GetTourneeContenuParIdQueryArgs>(Urls.GetTourneeContenuParIdQuery).Execute(new GetTourneeContenuParIdQueryArgs {
                Id = tournee1Id, Debut = Date, Fin = Date
            });

            Assert.True(getTourneeContenuParIdQueryResult1.Single().Passages.Count() == 1);
            Assert.True(getTourneeContenuParIdQueryResult1.Single().Passages.Single().PassageId == passagePonctuel1Id);

            //CHECK CONTENU TOURNEE 2
            GetTourneeContenuParIdQueryResult[] getTourneeContenuParIdQueryResult2 = factory.Create <GetTourneeContenuParIdQueryResult[], GetTourneeContenuParIdQueryArgs>(Urls.GetTourneeContenuParIdQuery).Execute(new GetTourneeContenuParIdQueryArgs {
                Id = tournee2Id, Debut = Date, Fin = Date
            });

            Assert.True(getTourneeContenuParIdQueryResult2.Single().Passages.Count() == 1);
            Assert.True(getTourneeContenuParIdQueryResult2.Single().Passages.Single().PassageId == passagePonctuel2Id);

            //DESAFFECTER PASSAGE 1 DE TOURNEE 1
            ActionResult desaffecterPassageResult = factory.Create <ActionResult, DesaffecterPassageATourneeCommandArgs>(Urls.DesaffecterPassageTournee).Execute(new DesaffecterPassageATourneeCommandArgs
            {
                Date        = Date,
                EstPonctuel = true,
                PassageId   = passagePonctuel1Id,
                TourneeId   = tournee1Id
            });

            Assert.True(desaffecterPassageResult.Succeeded);

            //DESAFFECTER PASSAGE 2 DE TOURNEE 2
            ActionResult desaffecterPassageResult2 = factory.Create <ActionResult, DesaffecterPassageATourneeCommandArgs>(Urls.DesaffecterPassageTournee).Execute(new DesaffecterPassageATourneeCommandArgs
            {
                Date        = Date,
                EstPonctuel = true,
                PassageId   = passagePonctuel2Id,
                TourneeId   = tournee2Id
            });

            Assert.True(desaffecterPassageResult2.Succeeded);

            //SUPPRIMER PASSAGE 1
            ActionResult supprimerPassagePonctuelCommandResult = factory.Create <ActionResult, SupprimerPassagePonctuelCommandArg>(Urls.SupprimerPassagePonctuel).Execute(new SupprimerPassagePonctuelCommandArg {
                PassagePonctuelId = passagePonctuel1Id
            });

            Assert.True(supprimerPassagePonctuelCommandResult.Succeeded);

            //SUPPRIMER PASSAGE 2
            ActionResult supprimerPassagePonctuelCommandResult2 = factory.Create <ActionResult, SupprimerPassagePonctuelCommandArg>(Urls.SupprimerPassagePonctuel).Execute(new SupprimerPassagePonctuelCommandArg {
                PassagePonctuelId = passagePonctuel2Id
            });

            Assert.True(supprimerPassagePonctuelCommandResult2.Succeeded);
        }