|
|
|
@ -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<long>(); |
|
|
|
|
|
|
|
|
|
// 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<long>(); |
|
|
|
|
|
|
|
|
|
// 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); |
|
|
|
|