diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 25f43e7..da74b91 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -19,7 +19,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.x + dotnet-version: 7.0.x - name: Restore dependencies run: dotnet restore - name: Build diff --git a/README.md b/README.md index eb972e8..04b9940 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![.NET](https://github.com/sj-distributor/Wax/actions/workflows/dotnet.yml/badge.svg)](https://github.com/sj-distributor/Wax/actions/workflows/dotnet.yml) [![Nuget](https://img.shields.io/nuget/v/Wax.Template)](https://www.nuget.org/packages/Wax.Template) -WilTechs Architecture Solution Template for .NET 6 +WilTechs Architecture Solution Template for .NET 7 ## Getting Started diff --git a/src/Wax.Api/Wax.Api.csproj b/src/Wax.Api/Wax.Api.csproj index ffa237a..0064612 100644 --- a/src/Wax.Api/Wax.Api.csproj +++ b/src/Wax.Api/Wax.Api.csproj @@ -1,7 +1,7 @@ - net6.0 + net7.0 enable @@ -10,8 +10,8 @@ - - + + diff --git a/src/Wax.Core/ApplicationModule.cs b/src/Wax.Core/ApplicationModule.cs index 9112f0d..daa44c0 100644 --- a/src/Wax.Core/ApplicationModule.cs +++ b/src/Wax.Core/ApplicationModule.cs @@ -39,6 +39,7 @@ public ApplicationModule(ILogger logger, ICurrentUser currentUser, IConfiguratio protected override void Load(ContainerBuilder builder) { + RegisterSettings(builder); RegisterAutoMapper(builder); RegisterDependency(builder); RegisterDatabase(builder); diff --git a/src/Wax.Core/Handlers/CommandHandlers/Customers/CreateCustomerCommandHandler.cs b/src/Wax.Core/Handlers/CommandHandlers/Customers/CreateCustomerCommandHandler.cs index 13d68ce..30246bf 100644 --- a/src/Wax.Core/Handlers/CommandHandlers/Customers/CreateCustomerCommandHandler.cs +++ b/src/Wax.Core/Handlers/CommandHandlers/Customers/CreateCustomerCommandHandler.cs @@ -13,7 +13,6 @@ public class CreateCustomerCommandHandler : ICommandHandler - net6.0 + net7.0 enable @@ -11,12 +11,12 @@ - + - - - + + + diff --git a/src/Wax.Messages/Wax.Messages.csproj b/src/Wax.Messages/Wax.Messages.csproj index 331a1be..68a5584 100644 --- a/src/Wax.Messages/Wax.Messages.csproj +++ b/src/Wax.Messages/Wax.Messages.csproj @@ -1,7 +1,7 @@ - net6.0 + net7.0 enable diff --git a/tests/Wax.E2ETests/Wax.E2ETests.csproj b/tests/Wax.E2ETests/Wax.E2ETests.csproj index 73474ab..0e90a4a 100644 --- a/tests/Wax.E2ETests/Wax.E2ETests.csproj +++ b/tests/Wax.E2ETests/Wax.E2ETests.csproj @@ -1,14 +1,14 @@ - net6.0 + net7.0 disable false - + diff --git a/tests/Wax.IntegrationTests/IntegrationTestBase.cs b/tests/Wax.IntegrationTests/IntegrationTestBase.cs index ec4ecd9..0d0a2eb 100644 --- a/tests/Wax.IntegrationTests/IntegrationTestBase.cs +++ b/tests/Wax.IntegrationTests/IntegrationTestBase.cs @@ -34,18 +34,6 @@ protected async Task Run(Func> action, Action RunWithUnitOfWork(Func> action) - { - var uow = _fixture.LifetimeScope.BeginLifetimeScope().Resolve(); - return await action(uow); - } - - protected async Task RunWithUnitOfWork(Func action) - { - var uow = _fixture.LifetimeScope.BeginLifetimeScope().Resolve(); - await action(uow); - } - public void Dispose() { _fixture.Cleanup(); diff --git a/tests/Wax.IntegrationTests/Wax.IntegrationTests.csproj b/tests/Wax.IntegrationTests/Wax.IntegrationTests.csproj index 81915ea..40714cc 100644 --- a/tests/Wax.IntegrationTests/Wax.IntegrationTests.csproj +++ b/tests/Wax.IntegrationTests/Wax.IntegrationTests.csproj @@ -1,15 +1,15 @@ - net6.0 + net7.0 disable false - - + + @@ -29,11 +29,6 @@ - - true - PreserveNewest - PreserveNewest - PreserveNewest diff --git a/tests/Wax.UnitTests/Wax.UnitTests.csproj b/tests/Wax.UnitTests/Wax.UnitTests.csproj index b765178..2b43967 100644 --- a/tests/Wax.UnitTests/Wax.UnitTests.csproj +++ b/tests/Wax.UnitTests/Wax.UnitTests.csproj @@ -1,7 +1,7 @@ - net6.0 + net7.0 disable false