|
|
@ -327,7 +327,7 @@ namespace EPAServeur.Tests.Services |
|
|
|
|
|
|
|
|
|
|
|
#region Tests GetEngagementsCountAsync |
|
|
|
#region Tests GetEngagementsCountAsync |
|
|
|
|
|
|
|
|
|
|
|
[TestCase(new long[] { 1, 2, 3 }, "formation")] |
|
|
|
[TestCase(new long[] { 1, 2, 3 }, "Coty")] |
|
|
|
[TestCase(new long[] { 1 }, null)] |
|
|
|
[TestCase(new long[] { 1 }, null)] |
|
|
|
public async Task GetEngagementsCountAsync_PasseDesParamsValides_RetourneLeNombreTotalDEngagements(long[] arrIdBUs, string texte) |
|
|
|
public async Task GetEngagementsCountAsync_PasseDesParamsValides_RetourneLeNombreTotalDEngagements(long[] arrIdBUs, string texte) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -341,7 +341,7 @@ namespace EPAServeur.Tests.Services |
|
|
|
idBUs = new List<long>(); |
|
|
|
idBUs = new List<long>(); |
|
|
|
|
|
|
|
|
|
|
|
// Act |
|
|
|
// Act |
|
|
|
long count = await engagementService.GetEngagementsCountAsync(idBUs, null, null, null, null, texte, null); |
|
|
|
long count = await engagementService.GetEngagementsCountAsync(idBUs, null, texte); |
|
|
|
|
|
|
|
|
|
|
|
// Assert |
|
|
|
// Assert |
|
|
|
Assert.Less(0, count); |
|
|
|
Assert.Less(0, count); |
|
|
@ -362,7 +362,7 @@ namespace EPAServeur.Tests.Services |
|
|
|
idBUs = new List<long>(); |
|
|
|
idBUs = new List<long>(); |
|
|
|
|
|
|
|
|
|
|
|
// Act |
|
|
|
// Act |
|
|
|
long count = await engagementService.GetEngagementsCountAsync(idBUs, null, null, null, null, texte, null); |
|
|
|
long count = await engagementService.GetEngagementsCountAsync(idBUs, null, texte); |
|
|
|
|
|
|
|
|
|
|
|
// Assert |
|
|
|
// Assert |
|
|
|
Assert.AreEqual(0, count); |
|
|
|
Assert.AreEqual(0, count); |
|
|
|