finished writing tests for episodes controller. started writing tests for seasons controller. add http client factory class for integration tests

This commit is contained in:
StevanFreeborn
2022-07-08 16:32:25 -05:00
parent 5985d5d9fc
commit 16fe8039bb
11 changed files with 740 additions and 333 deletions
@@ -49,14 +49,12 @@ namespace server.Controllers.v1
/// </summary>
/// <param name="number">The number of the episode in the series.</param>
/// <response code="200">Returns the episode requested.</response>
/// <response code="400">Not a valid request.</response>
/// <response code="404">Unable to find an episode with the provided number.</response>
/// <response code="500">Failed to get episode.</response>
/// <returns>Returns the episode requested.</returns>
[MapToApiVersion("1.0")]
[HttpGet("{number:int}")]
[ProducesResponseType(typeof(Episode), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ValidationProblemDetails), StatusCodes.Status400BadRequest)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status500InternalServerError)]
public async Task<IActionResult> GetEpisodeByNumberAsync(int number)