diff --git a/.github/workflows/chapter-2-workflow.yml b/.github/workflows/chapter-2-workflow.yml index 6dcec19c..67ea4cde 100644 --- a/.github/workflows/chapter-2-workflow.yml +++ b/.github/workflows/chapter-2-workflow.yml @@ -25,7 +25,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 @@ -43,7 +43,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 diff --git a/Chapter-2-modules-separation/Src/Contracts/Fitnet.Contracts.Api/Prepare/PrepareContractEndpoint.cs b/Chapter-2-modules-separation/Src/Contracts/Fitnet.Contracts.Api/Prepare/PrepareContractEndpoint.cs index d4f70c48..8c364057 100644 --- a/Chapter-2-modules-separation/Src/Contracts/Fitnet.Contracts.Api/Prepare/PrepareContractEndpoint.cs +++ b/Chapter-2-modules-separation/Src/Contracts/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-2-modules-separation/Src/Contracts/Fitnet.Contracts.Api/Sign/SignContractEndpoint.cs b/Chapter-2-modules-separation/Src/Contracts/Fitnet.Contracts.Api/Sign/SignContractEndpoint.cs index 9296e701..f9c2f747 100644 --- a/Chapter-2-modules-separation/Src/Contracts/Fitnet.Contracts.Api/Sign/SignContractEndpoint.cs +++ b/Chapter-2-modules-separation/Src/Contracts/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-2-modules-separation/Src/Contracts/Fitnet.Contracts.Infrastructure/Fitnet.Contracts.Infrastructure.csproj b/Chapter-2-modules-separation/Src/Contracts/Fitnet.Contracts.Infrastructure/Fitnet.Contracts.Infrastructure.csproj index 3cac8ac0..99078003 100644 --- a/Chapter-2-modules-separation/Src/Contracts/Fitnet.Contracts.Infrastructure/Fitnet.Contracts.Infrastructure.csproj +++ b/Chapter-2-modules-separation/Src/Contracts/Fitnet.Contracts.Infrastructure/Fitnet.Contracts.Infrastructure.csproj @@ -6,7 +6,6 @@ - diff --git a/Chapter-2-modules-separation/Src/Directory.Build.props b/Chapter-2-modules-separation/Src/Directory.Build.props index c8d610f8..ffa58689 100644 --- a/Chapter-2-modules-separation/Src/Directory.Build.props +++ b/Chapter-2-modules-separation/Src/Directory.Build.props @@ -3,7 +3,7 @@ EvolutionaryArchitecture.$(MSBuildProjectName) $(AssemblyName) - net9.0 + net10.0 latest true true diff --git a/Chapter-2-modules-separation/Src/Directory.Packages.props b/Chapter-2-modules-separation/Src/Directory.Packages.props index ed74deb1..5e714d87 100644 --- a/Chapter-2-modules-separation/Src/Directory.Packages.props +++ b/Chapter-2-modules-separation/Src/Directory.Packages.props @@ -12,23 +12,24 @@ - - - - - - - - - - + + + + + + + + + + + - - + + diff --git a/Chapter-2-modules-separation/Src/Offers/Fitnet.Offers.DataAccess/Fitnet.Offers.DataAccess.csproj b/Chapter-2-modules-separation/Src/Offers/Fitnet.Offers.DataAccess/Fitnet.Offers.DataAccess.csproj index 4f356b36..9d3296ad 100644 --- a/Chapter-2-modules-separation/Src/Offers/Fitnet.Offers.DataAccess/Fitnet.Offers.DataAccess.csproj +++ b/Chapter-2-modules-separation/Src/Offers/Fitnet.Offers.DataAccess/Fitnet.Offers.DataAccess.csproj @@ -3,7 +3,6 @@ - diff --git a/Chapter-2-modules-separation/Src/Passes/Fitnet.Passes.Api/GetAllPasses/GetAllPassesEndpoint.cs b/Chapter-2-modules-separation/Src/Passes/Fitnet.Passes.Api/GetAllPasses/GetAllPassesEndpoint.cs index 0e1dfcca..3a9f29e0 100644 --- a/Chapter-2-modules-separation/Src/Passes/Fitnet.Passes.Api/GetAllPasses/GetAllPassesEndpoint.cs +++ b/Chapter-2-modules-separation/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-2-modules-separation/Src/Passes/Fitnet.Passes.Api/MarkPassAsExpired/MarkPassAsExpiredEndpoint.cs b/Chapter-2-modules-separation/Src/Passes/Fitnet.Passes.Api/MarkPassAsExpired/MarkPassAsExpiredEndpoint.cs index 853775c3..388b0861 100644 --- a/Chapter-2-modules-separation/Src/Passes/Fitnet.Passes.Api/MarkPassAsExpired/MarkPassAsExpiredEndpoint.cs +++ b/Chapter-2-modules-separation/Src/Passes/Fitnet.Passes.Api/MarkPassAsExpired/MarkPassAsExpiredEndpoint.cs @@ -34,12 +34,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-2-modules-separation/Src/Passes/Fitnet.Passes.DataAccess/Fitnet.Passes.DataAccess.csproj b/Chapter-2-modules-separation/Src/Passes/Fitnet.Passes.DataAccess/Fitnet.Passes.DataAccess.csproj index 5f2c3f8a..91b8cc60 100644 --- a/Chapter-2-modules-separation/Src/Passes/Fitnet.Passes.DataAccess/Fitnet.Passes.DataAccess.csproj +++ b/Chapter-2-modules-separation/Src/Passes/Fitnet.Passes.DataAccess/Fitnet.Passes.DataAccess.csproj @@ -3,7 +3,6 @@ - diff --git a/Chapter-2-modules-separation/Src/Reports/Fitnet.Reports/GenerateNewPassesRegistrationsPerMonthReport/GenerateNewPassesPerMonthReportEndpoint.cs b/Chapter-2-modules-separation/Src/Reports/Fitnet.Reports/GenerateNewPassesRegistrationsPerMonthReport/GenerateNewPassesPerMonthReportEndpoint.cs index ec022e5b..96911ad4 100644 --- a/Chapter-2-modules-separation/Src/Reports/Fitnet.Reports/GenerateNewPassesRegistrationsPerMonthReport/GenerateNewPassesPerMonthReportEndpoint.cs +++ b/Chapter-2-modules-separation/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); }