diff --git a/EPAServeur.Tests/Controllers/EngagementsApiTests.cs b/EPAServeur.Tests/Controllers/EngagementsApiTests.cs index c2de69f..192cb56 100644 --- a/EPAServeur.Tests/Controllers/EngagementsApiTests.cs +++ b/EPAServeur.Tests/Controllers/EngagementsApiTests.cs @@ -107,8 +107,8 @@ namespace EPAServeur.Tests.Controllers EngagementsApiController engagementsApiController = new EngagementsApiController(engagementService, new NullLogger(), mockEnvironment.Object); List idBUs = new List { 1, 2 }; int nbEngagement = 5; - int idFirstEngagement = 2; - int idLastEngagement = 10; + int idFirstEngagement = 8; + int idLastEngagement = 4; // Act var okResult = engagementsApiController.GetEngagements(idBUs, null, true, 1, 5, null, null).Result as OkObjectResult; diff --git a/EPAServeur.Tests/Services/EngagementServiceTests.cs b/EPAServeur.Tests/Services/EngagementServiceTests.cs index 8c25bc7..5790571 100644 --- a/EPAServeur.Tests/Services/EngagementServiceTests.cs +++ b/EPAServeur.Tests/Services/EngagementServiceTests.cs @@ -58,7 +58,6 @@ namespace EPAServeur.Tests.Services #region Tests GetEngagementsAsync [TestCase(new long[] { 1, 2 })] - [TestCase(new long[] { 3 })] public async Task GetEngagementsAsync_PasseDesParamsDesIdBUValides_RetourneDesEngagements(long[] arrIdBUs) { // Arrange diff --git a/EPAServeur.Tests/Services/FormationServiceTests.cs b/EPAServeur.Tests/Services/FormationServiceTests.cs index e2954c5..cd2f5d7 100644 --- a/EPAServeur.Tests/Services/FormationServiceTests.cs +++ b/EPAServeur.Tests/Services/FormationServiceTests.cs @@ -272,7 +272,7 @@ namespace EPAServeur.Tests.Services // Assert Assert.AreEqual(0, formationDTOs.First().NbParticipations); - Assert.AreEqual(3, formationDTOs.Last().NbParticipations); + Assert.AreEqual(2, formationDTOs.Last().NbParticipations); } @@ -286,7 +286,7 @@ namespace EPAServeur.Tests.Services IEnumerable formationDTOs = await formationService.GetFormationsAsync(null, null, asc, null, null, null, tri, null, null); // Assert - Assert.AreEqual(3, formationDTOs.First().NbParticipations); + Assert.AreEqual(2, formationDTOs.First().NbParticipations); Assert.AreEqual(0, formationDTOs.Last().NbParticipations); }