chore: upgrade to ASP.NET Core 8
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<IsPackable>false</IsPackable>
|
||||
<IsTestProject>true</IsTestProject>
|
||||
</PropertyGroup>
|
||||
|
||||
+2
-4
@@ -20,13 +20,11 @@ using Xunit.Categories;
|
||||
namespace Shop.UnitTests.Application.Customer.Handlers;
|
||||
|
||||
[UnitTest]
|
||||
public class CreateCustomerCommandHandlerTests : IClassFixture<EfSqliteFixture>
|
||||
public class CreateCustomerCommandHandlerTests(EfSqliteFixture fixture) : IClassFixture<EfSqliteFixture>
|
||||
{
|
||||
private readonly EfSqliteFixture _fixture;
|
||||
private readonly EfSqliteFixture _fixture = fixture;
|
||||
private readonly CreateCustomerCommandValidator _validator = new();
|
||||
|
||||
public CreateCustomerCommandHandlerTests(EfSqliteFixture fixture) => _fixture = fixture;
|
||||
|
||||
[Fact]
|
||||
public async Task Add_ValidCommand_ShouldReturnsSuccessResult()
|
||||
{
|
||||
|
||||
+2
-4
@@ -20,13 +20,11 @@ using Xunit.Categories;
|
||||
namespace Shop.UnitTests.Application.Customer.Handlers;
|
||||
|
||||
[UnitTest]
|
||||
public class DeleteCustomerCommandHandlerTests : IClassFixture<EfSqliteFixture>
|
||||
public class DeleteCustomerCommandHandlerTests(EfSqliteFixture fixture) : IClassFixture<EfSqliteFixture>
|
||||
{
|
||||
private readonly EfSqliteFixture _fixture;
|
||||
private readonly EfSqliteFixture _fixture = fixture;
|
||||
private readonly DeleteCustomerCommandValidator _validator = new();
|
||||
|
||||
public DeleteCustomerCommandHandlerTests(EfSqliteFixture fixture) => _fixture = fixture;
|
||||
|
||||
[Fact]
|
||||
public async Task Delete_ValidCustomerId_ShouldReturnsSuccessResult()
|
||||
{
|
||||
|
||||
+2
-4
@@ -19,13 +19,11 @@ using Xunit.Categories;
|
||||
namespace Shop.UnitTests.Application.Customer.Handlers;
|
||||
|
||||
[UnitTest]
|
||||
public class UpdateCustomerCommandHandlerTest : IClassFixture<EfSqliteFixture>
|
||||
public class UpdateCustomerCommandHandlerTest(EfSqliteFixture fixture) : IClassFixture<EfSqliteFixture>
|
||||
{
|
||||
private readonly EfSqliteFixture _fixture;
|
||||
private readonly EfSqliteFixture _fixture = fixture;
|
||||
private readonly UpdateCustomerCommandValidator _validator = new();
|
||||
|
||||
public UpdateCustomerCommandHandlerTest(EfSqliteFixture fixture) => _fixture = fixture;
|
||||
|
||||
[Fact]
|
||||
public async Task Update_ValidCommand_ShouldReturnsSuccessResult()
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<IsPackable>false</IsPackable>
|
||||
<IsTestProject>true</IsTestProject>
|
||||
<SonarQubeTestProject>True</SonarQubeTestProject>
|
||||
|
||||
Reference in New Issue
Block a user