diff --git a/Sources/BowlingApi/Controllers/PartieController.cs b/Sources/BowlingApi/Controllers/PartieController.cs index 64df73d..58b4961 100644 --- a/Sources/BowlingApi/Controllers/PartieController.cs +++ b/Sources/BowlingApi/Controllers/PartieController.cs @@ -162,16 +162,7 @@ namespace BowlingApi.Controllers } } - - public Task Put(int? score, PartieDTO partie) - { - throw new NotImplementedException(); - } - - public Task Put(long id, PartieDTO parti) - { - throw new NotImplementedException(); - } + } } diff --git a/Sources/Tests/BowlingAPITest/TestPartiControlleur.cs b/Sources/Tests/BowlingAPITest/TestPartiControlleur.cs index 3ed718f..59b8455 100644 --- a/Sources/Tests/BowlingAPITest/TestPartiControlleur.cs +++ b/Sources/Tests/BowlingAPITest/TestPartiControlleur.cs @@ -90,8 +90,6 @@ namespace BowlingAPITest - [Fact] - public async Task Put_With_Valid_parti_Should_Return_Ok_With_parti() [Fact] public async Task Put_With_Invalid_Joueur_Should_Return_BadRequest() { @@ -99,7 +97,7 @@ namespace BowlingAPITest var joueurController = new JoueurController(null); // Act - var result = await joueurController.Put(null, null); + var result = await joueurController.Put(0, null); // Assert result.Should().BeOfType>(); @@ -217,7 +215,7 @@ namespace BowlingAPITest var actionResult = result as ActionResult; actionResult.Result.Should().BeOfType(); var badRequestResult = actionResult.Result as BadRequestObjectResult; - badRequestResult.Value.Should().Be("La partie est obligatoire"); + badRequestResult.Value.Should().Be("Le joueur est obligatoire"); }