net6conversion (#642)
* Converting to net6 startup and integration test formats * Update to minimal api and using pagetitle * Adjust functional test fixtures Update ApiEndpoints package version * Finish migration to minimal api startup
This commit is contained in:
@@ -8,9 +8,9 @@ using Xunit;
|
||||
namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers;
|
||||
|
||||
[Collection("Sequential")]
|
||||
public class ApiCatalogControllerList : IClassFixture<ApiTestFixture>
|
||||
public class ApiCatalogControllerList : IClassFixture<TestApiApplication>
|
||||
{
|
||||
public ApiCatalogControllerList(ApiTestFixture factory)
|
||||
public ApiCatalogControllerList(TestApiApplication factory)
|
||||
{
|
||||
Client = factory.CreateClient();
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ using Xunit;
|
||||
namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers;
|
||||
|
||||
[Collection("Sequential")]
|
||||
public class CreateEndpoint : IClassFixture<ApiTestFixture>
|
||||
public class CreateEndpoint : IClassFixture<TestApiApplication>
|
||||
{
|
||||
JsonSerializerOptions _jsonOptions = new JsonSerializerOptions { PropertyNameCaseInsensitive = true };
|
||||
private int _testBrandId = 1;
|
||||
@@ -21,7 +21,7 @@ public class CreateEndpoint : IClassFixture<ApiTestFixture>
|
||||
private string _testName = "test name";
|
||||
private decimal _testPrice = 1.23m;
|
||||
|
||||
public CreateEndpoint(ApiTestFixture factory)
|
||||
public CreateEndpoint(TestApiApplication factory)
|
||||
{
|
||||
Client = factory.CreateClient();
|
||||
}
|
||||
|
||||
@@ -11,11 +11,11 @@ using Xunit;
|
||||
namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers;
|
||||
|
||||
[Collection("Sequential")]
|
||||
public class DeleteEndpoint : IClassFixture<ApiTestFixture>
|
||||
public class DeleteEndpoint : IClassFixture<TestApiApplication>
|
||||
{
|
||||
JsonSerializerOptions _jsonOptions = new JsonSerializerOptions { PropertyNameCaseInsensitive = true };
|
||||
|
||||
public DeleteEndpoint(ApiTestFixture factory)
|
||||
public DeleteEndpoint(TestApiApplication factory)
|
||||
{
|
||||
Client = factory.CreateClient();
|
||||
}
|
||||
|
||||
@@ -9,11 +9,11 @@ using Xunit;
|
||||
namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers;
|
||||
|
||||
[Collection("Sequential")]
|
||||
public class GetByIdEndpoint : IClassFixture<ApiTestFixture>
|
||||
public class GetByIdEndpoint : IClassFixture<TestApiApplication>
|
||||
{
|
||||
JsonSerializerOptions _jsonOptions = new JsonSerializerOptions { PropertyNameCaseInsensitive = true };
|
||||
|
||||
public GetByIdEndpoint(ApiTestFixture factory)
|
||||
public GetByIdEndpoint(TestApiApplication factory)
|
||||
{
|
||||
Client = factory.CreateClient();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user