|
|
@ -60,7 +60,7 @@ namespace EPAServeur.Tests.Controllers |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
public async Task GetEpEnCours() |
|
|
|
public async Task GetEpEnCours() |
|
|
|
{ |
|
|
|
{ |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger); |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPEnCours(new List<long?>() { 1, 2 }, true, 1, 15, "", true, "", null, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPEnCours(new List<long?>() { 1, 2 }, true, 1, 15, "", true, "", null, null); |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
@ -70,7 +70,7 @@ namespace EPAServeur.Tests.Controllers |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
public async Task GetEpEnCoursCount() |
|
|
|
public async Task GetEpEnCoursCount() |
|
|
|
{ |
|
|
|
{ |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger); |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPEnCoursCount(new List<long?>() { 1, 2 }, "", true, null, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPEnCoursCount(new List<long?>() { 1, 2 }, "", true, null, null); |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
@ -80,7 +80,7 @@ namespace EPAServeur.Tests.Controllers |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
public async Task GetEpEnSignes() |
|
|
|
public async Task GetEpEnSignes() |
|
|
|
{ |
|
|
|
{ |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger); |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPSignes(new List<long?>() { 1, 2 }, true, 1, 15, "", "", null, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPSignes(new List<long?>() { 1, 2 }, true, 1, 15, "", "", null, null); |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
@ -91,7 +91,7 @@ namespace EPAServeur.Tests.Controllers |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
public async Task GetEpEnSignesCount() |
|
|
|
public async Task GetEpEnSignesCount() |
|
|
|
{ |
|
|
|
{ |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger); |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPSignesCount(new List<long?>() { 1, 2 }, "", null, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPSignesCount(new List<long?>() { 1, 2 }, "", null, null); |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
@ -101,7 +101,7 @@ namespace EPAServeur.Tests.Controllers |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
public async Task GetEPSignesCollaborateur() |
|
|
|
public async Task GetEPSignesCollaborateur() |
|
|
|
{ |
|
|
|
{ |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger); |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPSignesCollaborateur(new Guid("a0f40e2a-cc03-4032-a627-5389e1281c64")); |
|
|
|
Task<IActionResult> task = epApiController.GetEPSignesCollaborateur(new Guid("a0f40e2a-cc03-4032-a627-5389e1281c64")); |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
@ -111,7 +111,7 @@ namespace EPAServeur.Tests.Controllers |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
public async Task GetProchainEPCollaborateur() |
|
|
|
public async Task GetProchainEPCollaborateur() |
|
|
|
{ |
|
|
|
{ |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger); |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger, null); |
|
|
|
Task<IActionResult> task = epApiController.GetProchainEPCollaborateur(new Guid("a0f40e2a-cc03-4032-a627-5389e1281c64")); |
|
|
|
Task<IActionResult> task = epApiController.GetProchainEPCollaborateur(new Guid("a0f40e2a-cc03-4032-a627-5389e1281c64")); |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
@ -121,7 +121,7 @@ namespace EPAServeur.Tests.Controllers |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
public async Task GetEPSignesReferent() |
|
|
|
public async Task GetEPSignesReferent() |
|
|
|
{ |
|
|
|
{ |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger); |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPSignesReferent(new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"), true, 1, 15, "", "", null, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPSignesReferent(new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"), true, 1, 15, "", "", null, null); |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
@ -131,7 +131,7 @@ namespace EPAServeur.Tests.Controllers |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
public async Task GetEPSignesReferentCount() |
|
|
|
public async Task GetEPSignesReferentCount() |
|
|
|
{ |
|
|
|
{ |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger); |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPSignesReferentCount(new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"), "", null, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPSignesReferentCount(new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"), "", null, null); |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
@ -141,7 +141,7 @@ namespace EPAServeur.Tests.Controllers |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
public async Task GetEPEnCoursReferent() |
|
|
|
public async Task GetEPEnCoursReferent() |
|
|
|
{ |
|
|
|
{ |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger); |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPEnCoursReferent(new Guid("eb8b0f33-f529-4985-861e-1207f3312bb5"), true, 1, 15, "", "", null, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPEnCoursReferent(new Guid("eb8b0f33-f529-4985-861e-1207f3312bb5"), true, 1, 15, "", "", null, null); |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
@ -151,7 +151,7 @@ namespace EPAServeur.Tests.Controllers |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
public async Task GetEPEnCoursReferentCount() |
|
|
|
public async Task GetEPEnCoursReferentCount() |
|
|
|
{ |
|
|
|
{ |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger); |
|
|
|
EpApiController epApiController = new EpApiController(epInformationService, logger, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPEnCoursReferentCount(new Guid("eb8b0f33-f529-4985-861e-1207f3312bb5"), "", null, null); |
|
|
|
Task<IActionResult> task = epApiController.GetEPEnCoursReferentCount(new Guid("eb8b0f33-f529-4985-861e-1207f3312bb5"), "", null, null); |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
OkObjectResult result = task.Result as OkObjectResult; |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
|
Assert.AreEqual(200, result.StatusCode); |
|
|
|