Suppression du code du TU pour l'api formation

develop
jboinembalome 4 years ago
parent cfe019be07
commit b72e5acaa3
  1. 12
      EPAServeur.Tests/Controllers/FormationApiTests.cs

@ -63,14 +63,14 @@ namespace EPAServeur.Tests.Controllers
[Test] [Test]
public void GetFormationById_PasseEnParamUnIdPresentDansLaBDD_RetourneUnObjetOkResult() public void GetFormationById_PasseEnParamUnIdPresentDansLaBDD_RetourneUnObjetOkResult()
{ {
// Arrange //// Arrange
FormationsApiController formationsApiController = new FormationsApiController(formationService, new NullLogger<FormationsApiController>()); //FormationsApiController formationsApiController = new FormationsApiController(formationService, new NullLogger<FormationsApiController>());
// Act // // Act
var okResult = formationsApiController.GetFormationById(1); // var okResult = formationsApiController.GetFormationById(1);
// Assert //// Assert
Assert.IsInstanceOf<OkObjectResult>(okResult.Result); //Assert.IsInstanceOf<OkObjectResult>(okResult.Result);
} }

Loading…
Cancel
Save