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:
@@ -0,0 +1,49 @@
|
||||
using server.tests.Http;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace server.tests.v1.integrationTests
|
||||
{
|
||||
public class SeasonsControllerIntegrationTests
|
||||
{
|
||||
private readonly HttpClient _client;
|
||||
private readonly JsonSerializerOptions _serializerOptions;
|
||||
private readonly string _endpoint;
|
||||
|
||||
public SeasonsControllerIntegrationTests()
|
||||
{
|
||||
_client = HttpClientFactory.GetHttpClient(1);
|
||||
|
||||
_serializerOptions = new JsonSerializerOptions
|
||||
{
|
||||
PropertyNameCaseInsensitive = true
|
||||
};
|
||||
|
||||
_endpoint = "/api/seasons";
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task GetSeasonsAsync_AllSeasons_Returns200StatusCodeWithSeasons()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task GetSeasonByNumberAsync_SeasonOne_Returns200StatusCodeWithSeason()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task GetSeasonByNumberAsync_InvalidSeason_Returns404StatusCode()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task GetSeasonByNumberAsync_ValidSeasonNumberForNonExistentSeason_Returns404StatusCode()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user