From fa881c53fd3c10e925f052f9ba07edd5ed30da9a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Dec 2025 20:38:45 +0000 Subject: [PATCH 1/7] Upgrade Chapter 3 to .NET 10: Update framework and package versions Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com> --- .../Fitnet.Common/Directory.Build.props | 2 +- .../Fitnet.Common/Directory.Packages.props | 10 ++++---- .../Src/Directory.Build.props | 2 +- .../Src/Directory.Packages.props | 9 ++++--- .../Prepare/PrepareContractEndpoint.cs | 8 ++---- .../Sign/SignContractEndpoint.cs | 8 ++---- .../Fitnet/Src/Directory.Build.props | 2 +- .../Fitnet/Src/Directory.Packages.props | 25 ++++++++++--------- .../GetAllPasses/GetAllPassesEndpoint.cs | 8 ++---- .../MarkPassAsExpiredEndpoint.cs | 8 ++---- ...GenerateNewPassesPerMonthReportEndpoint.cs | 8 ++---- 11 files changed, 36 insertions(+), 54 deletions(-) diff --git a/Chapter-3-microservice-extraction/Fitnet.Common/Directory.Build.props b/Chapter-3-microservice-extraction/Fitnet.Common/Directory.Build.props index c09de8b0..a1932c8e 100644 --- a/Chapter-3-microservice-extraction/Fitnet.Common/Directory.Build.props +++ b/Chapter-3-microservice-extraction/Fitnet.Common/Directory.Build.props @@ -3,7 +3,7 @@ EvolutionaryArchitecture.$(MSBuildProjectName) $(AssemblyName) - net9.0 + net10.0 latest true true diff --git a/Chapter-3-microservice-extraction/Fitnet.Common/Directory.Packages.props b/Chapter-3-microservice-extraction/Fitnet.Common/Directory.Packages.props index 45c1560b..42bf6313 100644 --- a/Chapter-3-microservice-extraction/Fitnet.Common/Directory.Packages.props +++ b/Chapter-3-microservice-extraction/Fitnet.Common/Directory.Packages.props @@ -8,15 +8,15 @@ - - - - + + + + - + diff --git a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Directory.Build.props b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Directory.Build.props index 32629cc7..21ff713d 100644 --- a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Directory.Build.props +++ b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Directory.Build.props @@ -3,7 +3,7 @@ EvolutionaryArchitecture.$(MSBuildProjectName) $(AssemblyName) - net9.0 + net10.0 latest true true diff --git a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Directory.Packages.props b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Directory.Packages.props index afb29c0a..05ce7218 100644 --- a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Directory.Packages.props +++ b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Directory.Packages.props @@ -13,10 +13,11 @@ - - - - + + + + + diff --git a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Prepare/PrepareContractEndpoint.cs b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Prepare/PrepareContractEndpoint.cs index 6dcda33b..71e4c2b5 100644 --- a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Prepare/PrepareContractEndpoint.cs +++ b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Prepare/PrepareContractEndpoint.cs @@ -18,12 +18,8 @@ internal static void MapPrepareContract(this IEndpointRouteBuilder app) => app.M return Results.Created($"/{ContractsApiPaths.Prepare}/{contractId}", contractId); }) .ValidateRequest() - .WithOpenApi(operation => new(operation) - { - Summary = "Triggers preparation of a new contract for new or existing customer", - Description = - "This endpoint is used to prepare a new contract for new and existing customers.", - }) + .WithSummary("Triggers preparation of a new contract for new or existing customer") + .WithDescription("This endpoint is used to prepare a new contract for new and existing customers.") .Produces(StatusCodes.Status201Created) .Produces(StatusCodes.Status409Conflict) .Produces(StatusCodes.Status500InternalServerError); diff --git a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Sign/SignContractEndpoint.cs b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Sign/SignContractEndpoint.cs index 8741b9e1..949299c6 100644 --- a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Sign/SignContractEndpoint.cs +++ b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Sign/SignContractEndpoint.cs @@ -19,12 +19,8 @@ internal static void MapSignContract(this IEndpointRouteBuilder app) => app.MapP return Results.NoContent(); }) .ValidateRequest() - .WithOpenApi(operation => new(operation) - { - Summary = "Signs prepared contract", - Description = - "This endpoint is used to sign prepared contract by customer.", - }) + .WithSummary("Signs prepared contract") + .WithDescription("This endpoint is used to sign prepared contract by customer.") .Produces(StatusCodes.Status204NoContent) .Produces(StatusCodes.Status404NotFound) .Produces(StatusCodes.Status409Conflict) diff --git a/Chapter-3-microservice-extraction/Fitnet/Src/Directory.Build.props b/Chapter-3-microservice-extraction/Fitnet/Src/Directory.Build.props index 32629cc7..21ff713d 100644 --- a/Chapter-3-microservice-extraction/Fitnet/Src/Directory.Build.props +++ b/Chapter-3-microservice-extraction/Fitnet/Src/Directory.Build.props @@ -3,7 +3,7 @@ EvolutionaryArchitecture.$(MSBuildProjectName) $(AssemblyName) - net9.0 + net10.0 latest true true diff --git a/Chapter-3-microservice-extraction/Fitnet/Src/Directory.Packages.props b/Chapter-3-microservice-extraction/Fitnet/Src/Directory.Packages.props index 73f22399..fb4a6b10 100644 --- a/Chapter-3-microservice-extraction/Fitnet/Src/Directory.Packages.props +++ b/Chapter-3-microservice-extraction/Fitnet/Src/Directory.Packages.props @@ -15,25 +15,26 @@ - - - - - - - - + + + + + + + + - - + + + - - + + diff --git a/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.Api/GetAllPasses/GetAllPassesEndpoint.cs b/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.Api/GetAllPasses/GetAllPassesEndpoint.cs index 0e1dfcca..3a9f29e0 100644 --- a/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.Api/GetAllPasses/GetAllPassesEndpoint.cs +++ b/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.Api/GetAllPasses/GetAllPassesEndpoint.cs @@ -19,12 +19,8 @@ internal static void MapGetAllPasses(this IEndpointRouteBuilder app) => return Results.Ok(response); }) - .WithOpenApi(operation => new(operation) - { - Summary = "Returns all passes that exist in the system", - Description = - "This endpoint is used to retrieve all existing passes.", - }) + .WithSummary("Returns all passes that exist in the system") + .WithDescription("This endpoint is used to retrieve all existing passes.") .Produces() .Produces(StatusCodes.Status500InternalServerError); } \ No newline at end of file diff --git a/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.Api/MarkPassAsExpired/MarkPassAsExpiredEndpoint.cs b/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.Api/MarkPassAsExpired/MarkPassAsExpiredEndpoint.cs index 4d3714fa..67ac2aa6 100644 --- a/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.Api/MarkPassAsExpired/MarkPassAsExpiredEndpoint.cs +++ b/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.Api/MarkPassAsExpired/MarkPassAsExpiredEndpoint.cs @@ -32,12 +32,8 @@ internal static void MapMarkPassAsExpired(this IEndpointRouteBuilder app) => app return Results.NoContent(); }) - .WithOpenApi(operation => new(operation) - { - Summary = "Marks pass which expired", - Description = - "This endpoint is used to mark expired pass. Based on that it is possible to offer new contract to customer.", - }) + .WithSummary("Marks pass which expired") + .WithDescription("This endpoint is used to mark expired pass. Based on that it is possible to offer new contract to customer.") .Produces(StatusCodes.Status204NoContent) .Produces(StatusCodes.Status404NotFound) .Produces(StatusCodes.Status500InternalServerError); diff --git a/Chapter-3-microservice-extraction/Fitnet/Src/Reports/Fitnet.Reports/GenerateNewPassesRegistrationsPerMonthReport/GenerateNewPassesPerMonthReportEndpoint.cs b/Chapter-3-microservice-extraction/Fitnet/Src/Reports/Fitnet.Reports/GenerateNewPassesRegistrationsPerMonthReport/GenerateNewPassesPerMonthReportEndpoint.cs index 93f10202..96911ad4 100644 --- a/Chapter-3-microservice-extraction/Fitnet/Src/Reports/Fitnet.Reports/GenerateNewPassesRegistrationsPerMonthReport/GenerateNewPassesPerMonthReportEndpoint.cs +++ b/Chapter-3-microservice-extraction/Fitnet/Src/Reports/Fitnet.Reports/GenerateNewPassesRegistrationsPerMonthReport/GenerateNewPassesPerMonthReportEndpoint.cs @@ -18,12 +18,8 @@ internal static void MapGenerateNewPassesRegistrationsPerMonthReport(this IEndpo return Results.Ok(newPassesRegistrationsPerMonthResponse); }) - .WithOpenApi(operation => new(operation) - { - Summary = "Returns report of all passes registered in a month", - Description = - "This endpoint is used to retrieve all passes that were registered in a given month." - }) + .WithSummary("Returns report of all passes registered in a month") + .WithDescription("This endpoint is used to retrieve all passes that were registered in a given month.") .Produces() .Produces(StatusCodes.Status500InternalServerError); } From 3b50eb74e40a1fa4412c8fb4536453f9bc7be8f9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:00:19 +0000 Subject: [PATCH 2/7] Update Chapter 3 CI/CD workflows to use .NET 10.0.x Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com> --- .github/workflows/chapter-3-contracts-package-workflow.yml | 4 ++-- .github/workflows/chapter-3-contracts-workflow.yml | 4 ++-- .github/workflows/chapter-3-package-workflow.yml | 6 +++--- .github/workflows/chapter-3-workflow.yml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/chapter-3-contracts-package-workflow.yml b/.github/workflows/chapter-3-contracts-package-workflow.yml index 1a850bc7..8a410a55 100644 --- a/.github/workflows/chapter-3-contracts-package-workflow.yml +++ b/.github/workflows/chapter-3-contracts-package-workflow.yml @@ -26,7 +26,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 9.0.x + dotnet-version: 10.0.x - name: Add Evolutionary Architecture Nuget Source uses: evolutionary-architecture/evolutionary-architecture-by-example/.github@main with: @@ -52,7 +52,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 9.0.x + dotnet-version: 10.0.x - name: Add Evolutionary Architecture Nuget Source uses: evolutionary-architecture/evolutionary-architecture-by-example/.github@main with: diff --git a/.github/workflows/chapter-3-contracts-workflow.yml b/.github/workflows/chapter-3-contracts-workflow.yml index 38b3c354..cd3dd10a 100644 --- a/.github/workflows/chapter-3-contracts-workflow.yml +++ b/.github/workflows/chapter-3-contracts-workflow.yml @@ -26,7 +26,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 9.0.x + dotnet-version: 10.0.x - name: Add Evolutionary Architecture Nuget Source uses: evolutionary-architecture/evolutionary-architecture-by-example/.github@main with: @@ -51,7 +51,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 9.0.x + dotnet-version: 10.0.x - name: Add Evolutionary Architecture Nuget Source uses: evolutionary-architecture/evolutionary-architecture-by-example/.github@main with: diff --git a/.github/workflows/chapter-3-package-workflow.yml b/.github/workflows/chapter-3-package-workflow.yml index f6e0aae8..74270713 100644 --- a/.github/workflows/chapter-3-package-workflow.yml +++ b/.github/workflows/chapter-3-package-workflow.yml @@ -26,7 +26,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 9.0.x + dotnet-version: 10.0.x - name: Restore dependencies run: dotnet restore - name: Build @@ -45,7 +45,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 9.0.x + dotnet-version: 10.0.x - name: Restore dependencies run: dotnet restore - name: Test @@ -64,7 +64,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 9.0.x + dotnet-version: 10.0.x - name: Pack Projects run: | diff --git a/.github/workflows/chapter-3-workflow.yml b/.github/workflows/chapter-3-workflow.yml index d4072034..75086178 100644 --- a/.github/workflows/chapter-3-workflow.yml +++ b/.github/workflows/chapter-3-workflow.yml @@ -27,7 +27,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 9.0.x + dotnet-version: 10.0.x - name: Add Evolutionary Architecture Nuget Source uses: evolutionary-architecture/evolutionary-architecture-by-example/.github@main with: @@ -52,7 +52,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 9.0.x + dotnet-version: 10.0.x - name: Add Evolutionary Architecture Nuget Source uses: evolutionary-architecture/evolutionary-architecture-by-example/.github@main with: From 612b70b7565d909ce73b457004acd5b36d8b68a7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:18:02 +0000 Subject: [PATCH 3/7] Remove redundant Microsoft.AspNetCore.Http.Abstractions package reference Fixes NU1510 error in Fitnet.Contracts.Infrastructure project. The package is already included via FrameworkReference to Microsoft.AspNetCore.App. Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com> --- .../Fitnet.Contracts.Infrastructure.csproj | 1 - 1 file changed, 1 deletion(-) diff --git a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Fitnet.Contracts.Infrastructure.csproj b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Fitnet.Contracts.Infrastructure.csproj index 97aee77c..ca40ddf0 100644 --- a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Fitnet.Contracts.Infrastructure.csproj +++ b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Fitnet.Contracts.Infrastructure.csproj @@ -8,7 +8,6 @@ - From 213c1871054e99e0f97260764cd15eba581b4b42 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:38:50 +0000 Subject: [PATCH 4/7] Fix IDE0055 formatting errors in migration files Add missing blank line between namespace declaration and using statements in three migration files to comply with C# formatting rules. Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com> --- .../Migrations/20230601184153_MakeSignedAtColumnNullable.cs | 1 + .../Database/Migrations/20230601184328_AddCustomerIdColumn.cs | 1 + ...24171216_ContractsAddColumnsToSupportContractExpiration.cs | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184153_MakeSignedAtColumnNullable.cs b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184153_MakeSignedAtColumnNullable.cs index 8b35b64c..9edfabc1 100644 --- a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184153_MakeSignedAtColumnNullable.cs +++ b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184153_MakeSignedAtColumnNullable.cs @@ -1,6 +1,7 @@ #nullable disable namespace EvolutionaryArchitecture.Fitnet.Contracts.Data.Database.Migrations; + using System; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184328_AddCustomerIdColumn.cs b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184328_AddCustomerIdColumn.cs index cf6a802e..9d2c633a 100644 --- a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184328_AddCustomerIdColumn.cs +++ b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184328_AddCustomerIdColumn.cs @@ -1,6 +1,7 @@ #nullable disable namespace EvolutionaryArchitecture.Fitnet.Contracts.Data.Database.Migrations; + using System; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230624171216_ContractsAddColumnsToSupportContractExpiration.cs b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230624171216_ContractsAddColumnsToSupportContractExpiration.cs index 9afbaab9..1e8db3d1 100644 --- a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230624171216_ContractsAddColumnsToSupportContractExpiration.cs +++ b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230624171216_ContractsAddColumnsToSupportContractExpiration.cs @@ -1,8 +1,8 @@ #nullable disable namespace EvolutionaryArchitecture.Fitnet.Contracts.Data.Database.Migrations; -using - System; + +using System; using Microsoft.EntityFrameworkCore.Migrations; [ExcludeFromCodeCoverage] From ef88f80d9ac995f6d1cad428804ca86676f8f353 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:40:14 +0000 Subject: [PATCH 5/7] Add missing using statement for ExcludeFromCodeCoverage attribute Add using System.Diagnostics.CodeAnalysis to migration files that use [ExcludeFromCodeCoverage] attribute. Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com> --- .../Migrations/20230601184153_MakeSignedAtColumnNullable.cs | 1 + .../Database/Migrations/20230601184328_AddCustomerIdColumn.cs | 1 + ...30624171216_ContractsAddColumnsToSupportContractExpiration.cs | 1 + 3 files changed, 3 insertions(+) diff --git a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184153_MakeSignedAtColumnNullable.cs b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184153_MakeSignedAtColumnNullable.cs index 9edfabc1..1ee384af 100644 --- a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184153_MakeSignedAtColumnNullable.cs +++ b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184153_MakeSignedAtColumnNullable.cs @@ -3,6 +3,7 @@ namespace EvolutionaryArchitecture.Fitnet.Contracts.Data.Database.Migrations; using System; +using System.Diagnostics.CodeAnalysis; using Microsoft.EntityFrameworkCore.Migrations; [ExcludeFromCodeCoverage] diff --git a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184328_AddCustomerIdColumn.cs b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184328_AddCustomerIdColumn.cs index 9d2c633a..86d050e2 100644 --- a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184328_AddCustomerIdColumn.cs +++ b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184328_AddCustomerIdColumn.cs @@ -3,6 +3,7 @@ namespace EvolutionaryArchitecture.Fitnet.Contracts.Data.Database.Migrations; using System; +using System.Diagnostics.CodeAnalysis; using Microsoft.EntityFrameworkCore.Migrations; [ExcludeFromCodeCoverage] diff --git a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230624171216_ContractsAddColumnsToSupportContractExpiration.cs b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230624171216_ContractsAddColumnsToSupportContractExpiration.cs index 1e8db3d1..6c1a968b 100644 --- a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230624171216_ContractsAddColumnsToSupportContractExpiration.cs +++ b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Database/Migrations/20230624171216_ContractsAddColumnsToSupportContractExpiration.cs @@ -3,6 +3,7 @@ namespace EvolutionaryArchitecture.Fitnet.Contracts.Data.Database.Migrations; using System; +using System.Diagnostics.CodeAnalysis; using Microsoft.EntityFrameworkCore.Migrations; [ExcludeFromCodeCoverage] From 982bc393a046c9c743e71894ec6239dbe868bdb9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 11:18:49 +0000 Subject: [PATCH 6/7] Fix IDE0055 formatting errors in Fitnet migration files Add missing blank lines between namespace declarations and using statements, and add missing using System.Diagnostics.CodeAnalysis for ExcludeFromCodeCoverage attribute in three migration files. Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com> --- .../Database/Migrations/20230503180337_CreateOffersTable.cs | 1 + .../Database/Migrations/20230503180338_CreatePassesTable.cs | 2 ++ .../Migrations/20250927073029_AddMissingForeignKeys.cs | 3 +++ 3 files changed, 6 insertions(+) diff --git a/Chapter-3-microservice-extraction/Fitnet/Src/Offers/Fitnet.Offers.DataAccess/Database/Migrations/20230503180337_CreateOffersTable.cs b/Chapter-3-microservice-extraction/Fitnet/Src/Offers/Fitnet.Offers.DataAccess/Database/Migrations/20230503180337_CreateOffersTable.cs index 8480b7c2..b6852185 100644 --- a/Chapter-3-microservice-extraction/Fitnet/Src/Offers/Fitnet.Offers.DataAccess/Database/Migrations/20230503180337_CreateOffersTable.cs +++ b/Chapter-3-microservice-extraction/Fitnet/Src/Offers/Fitnet.Offers.DataAccess/Database/Migrations/20230503180337_CreateOffersTable.cs @@ -1,6 +1,7 @@ #nullable disable namespace SuperSimpleArchitecture.Fitnet.Migrations.OffersPersistenceMigrations; + using System; using System.Diagnostics.CodeAnalysis; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Database/Migrations/20230503180338_CreatePassesTable.cs b/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Database/Migrations/20230503180338_CreatePassesTable.cs index 2f854018..f5c8d06d 100644 --- a/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Database/Migrations/20230503180338_CreatePassesTable.cs +++ b/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Database/Migrations/20230503180338_CreatePassesTable.cs @@ -1,7 +1,9 @@ #nullable disable namespace EvolutionaryArchitecture.Fitnet.Passes.DataAccess.Database; + using System; +using System.Diagnostics.CodeAnalysis; using Microsoft.EntityFrameworkCore.Migrations; [ExcludeFromCodeCoverage] diff --git a/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Database/Migrations/20250927073029_AddMissingForeignKeys.cs b/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Database/Migrations/20250927073029_AddMissingForeignKeys.cs index b3a8c6b7..f7e19605 100644 --- a/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Database/Migrations/20250927073029_AddMissingForeignKeys.cs +++ b/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Database/Migrations/20250927073029_AddMissingForeignKeys.cs @@ -1,8 +1,11 @@ #nullable disable namespace EvolutionaryArchitecture.Fitnet.Passes.DataAccess.Database.Migrations; + +using System.Diagnostics.CodeAnalysis; using Microsoft.EntityFrameworkCore.Migrations; +[ExcludeFromCodeCoverage] /// public partial class AddMissingForeignKeys : Migration { From 1cd1affe6a4e77a624c5da4348603bad2de2bebe Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 14:32:50 +0000 Subject: [PATCH 7/7] Fix CS1587 error: Move XML comment before attribute XML comment must be placed directly before the class declaration or before attributes. Moved /// comment before [ExcludeFromCodeCoverage] attribute. Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com> --- .../Database/Migrations/20250927073029_AddMissingForeignKeys.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Database/Migrations/20250927073029_AddMissingForeignKeys.cs b/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Database/Migrations/20250927073029_AddMissingForeignKeys.cs index f7e19605..47f7bdcf 100644 --- a/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Database/Migrations/20250927073029_AddMissingForeignKeys.cs +++ b/Chapter-3-microservice-extraction/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Database/Migrations/20250927073029_AddMissingForeignKeys.cs @@ -5,8 +5,8 @@ namespace EvolutionaryArchitecture.Fitnet.Passes.DataAccess.Database.Migrations; using System.Diagnostics.CodeAnalysis; using Microsoft.EntityFrameworkCore.Migrations; -[ExcludeFromCodeCoverage] /// +[ExcludeFromCodeCoverage] public partial class AddMissingForeignKeys : Migration { private static readonly string[] columns = ["InboxMessageId", "InboxConsumerId"];