|
|
@ -272,7 +272,7 @@ namespace EPAServeur.Tests.Services |
|
|
|
|
|
|
|
|
|
|
|
// Assert |
|
|
|
// Assert |
|
|
|
Assert.AreEqual(0, formationDTOs.First().NbParticipations); |
|
|
|
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<FormationDetailsDTO> formationDTOs = await formationService.GetFormationsAsync(null, null, asc, null, null, null, tri, null, null); |
|
|
|
IEnumerable<FormationDetailsDTO> formationDTOs = await formationService.GetFormationsAsync(null, null, asc, null, null, null, tri, null, null); |
|
|
|
|
|
|
|
|
|
|
|
// Assert |
|
|
|
// Assert |
|
|
|
Assert.AreEqual(3, formationDTOs.First().NbParticipations); |
|
|
|
Assert.AreEqual(2, formationDTOs.First().NbParticipations); |
|
|
|
Assert.AreEqual(0, formationDTOs.Last().NbParticipations); |
|
|
|
Assert.AreEqual(0, formationDTOs.Last().NbParticipations); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|