diff --git a/EPAServeur.Tests/Controllers/EngagementsApiTests.cs b/EPAServeur.Tests/Controllers/EngagementsApiTests.cs index 192cb56..ca0501b 100644 --- a/EPAServeur.Tests/Controllers/EngagementsApiTests.cs +++ b/EPAServeur.Tests/Controllers/EngagementsApiTests.cs @@ -132,7 +132,7 @@ namespace EPAServeur.Tests.Controllers List idBUs = new List { 1, 2 }; // Act - var okResult = engagementsApiController.GetEngagementsCount(idBUs, null, true, 1, 5, null, null); + var okResult = engagementsApiController.GetEngagementsCount(idBUs, null, null); // Assert Assert.IsInstanceOf(okResult.Result); @@ -144,10 +144,10 @@ namespace EPAServeur.Tests.Controllers // Arrange EngagementsApiController engagementsApiController = new EngagementsApiController(engagementService, new NullLogger(), mockEnvironment.Object); List idBUs = new List { 1, 2 }; - int nbEngagement = 5; + int nbEngagement = 12; // Act - var okResult = engagementsApiController.GetEngagementsCount(idBUs, null, true, 1, 5, null, null).Result as OkObjectResult; + var okResult = engagementsApiController.GetEngagementsCount(idBUs, null, null).Result as OkObjectResult; // Assert Assert.IsInstanceOf(okResult.Value); diff --git a/EPAServeur.Tests/Services/EngagementServiceTests.cs b/EPAServeur.Tests/Services/EngagementServiceTests.cs index 5790571..5ab7833 100644 --- a/EPAServeur.Tests/Services/EngagementServiceTests.cs +++ b/EPAServeur.Tests/Services/EngagementServiceTests.cs @@ -327,7 +327,7 @@ namespace EPAServeur.Tests.Services #region Tests GetEngagementsCountAsync - [TestCase(new long[] { 1, 2, 3 }, "formation")] + [TestCase(new long[] { 1, 2, 3 }, "Coty")] [TestCase(new long[] { 1 }, null)] public async Task GetEngagementsCountAsync_PasseDesParamsValides_RetourneLeNombreTotalDEngagements(long[] arrIdBUs, string texte) { @@ -341,7 +341,7 @@ namespace EPAServeur.Tests.Services idBUs = new List(); // Act - long count = await engagementService.GetEngagementsCountAsync(idBUs, null, null, null, null, texte, null); + long count = await engagementService.GetEngagementsCountAsync(idBUs, null, texte); // Assert Assert.Less(0, count); @@ -362,7 +362,7 @@ namespace EPAServeur.Tests.Services idBUs = new List(); // Act - long count = await engagementService.GetEngagementsCountAsync(idBUs, null, null, null, null, texte, null); + long count = await engagementService.GetEngagementsCountAsync(idBUs, null, texte); // Assert Assert.AreEqual(0, count);