diff --git a/.github/workflows/chapter-4-workflow.yml b/.github/workflows/chapter-4-workflow.yml
index fafe75f2..2671bca9 100644
--- a/.github/workflows/chapter-4-workflow.yml
+++ b/.github/workflows/chapter-4-workflow.yml
@@ -13,7 +13,7 @@ on:
env:
CHAPTER_DIR: "Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src"
- NUGET_SOURCE_NAME: "evolutionaryArchitecture"
+ NUGET_SOURCE_NAME: "EvolutionaryArchitecture"
jobs:
build:
@@ -28,14 +28,14 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
- dotnet-version: 9.0.x
- - name: Add Evolutionary Architecture Nuget Source
- uses: evolutionary-architecture/evolutionary-architecture-by-example/.github@main
- with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- owner: ${{ github.repository_owner }}
- path: ${{ env.CHAPTER_DIR }}
- nuget-source-name: ${{ env.NUGET_SOURCE_NAME }}
+ dotnet-version: 10.0.x
+ - name: Authenticate to GitHub Packages
+ run: |
+ dotnet nuget update source ${{ env.NUGET_SOURCE_NAME }} \
+ --username ${{ github.actor }} \
+ --password ${{ secrets.GITHUB_TOKEN }} \
+ --store-password-in-clear-text \
+ --configfile nuget.config
- name: Restore dependencies
run: dotnet restore
- name: Build
@@ -53,15 +53,14 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
- dotnet-version: 9.0.x
- - name: Add Evolutionary Architecture Nuget Source
- uses: evolutionary-architecture/evolutionary-architecture-by-example/.github@main
- with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- owner: ${{ github.repository_owner }}
- path: ${{ env.CHAPTER_DIR }}
- nuget-source-name: ${{ env.NUGET_SOURCE_NAME }}
-
+ dotnet-version: 10.0.x
+ - name: Authenticate to GitHub Packages
+ run: |
+ dotnet nuget update source ${{ env.NUGET_SOURCE_NAME }} \
+ --username ${{ github.actor }} \
+ --password ${{ secrets.GITHUB_TOKEN }} \
+ --store-password-in-clear-text \
+ --configfile nuget.config
- name: Restore dependencies
run: dotnet restore
- name: Test
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Directory.Build.props b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Directory.Build.props
index 32629cc7..21ff713d 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Directory.Build.props
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Directory.Build.props
@@ -3,7 +3,7 @@
EvolutionaryArchitecture.$(MSBuildProjectName)
$(AssemblyName)
- net9.0
+ net10.0
latest
true
true
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Directory.Packages.props b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Directory.Packages.props
new file mode 100644
index 00000000..c1ca7381
--- /dev/null
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Directory.Packages.props
@@ -0,0 +1,54 @@
+
+
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet.sln b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet.sln
deleted file mode 100644
index 7523a1f5..00000000
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet.sln
+++ /dev/null
@@ -1,96 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fitnet", "Fitnet\Fitnet.csproj", "{F794BA2B-0F1A-4D1C-93B8-32B916FDEDEC}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Reports", "Reports", "{7D3193F0-C731-4683-893F-53CE8087D7E2}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Passes", "Passes", "{732AD772-11C2-4DCC-B6DC-D59EABEF335B}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Offers", "Offers", "{8EFEF03A-A6B6-4FC6-A74C-B8D5A6889679}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{B834E435-6093-4174-9AC1-10D2E7398D31}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{C8E0FB37-A103-45A9-ADCE-0FF98CA00DB1}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{EF30C337-A488-40BB-B774-48D7F0106FB8}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fitnet.Offers.Api", "Offers\Fitnet.Offers.Api\Fitnet.Offers.Api.csproj", "{E104E7B5-2AFD-4C63-995E-A64D4829F280}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fitnet.Offers.DataAccess", "Offers\Fitnet.Offers.DataAccess\Fitnet.Offers.DataAccess.csproj", "{C4ECAA9E-78CE-40D6-806A-936CDC5137DB}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fitnet.Offers.IntegrationTests", "Offers\Tests\Fitnet.Offers.IntegrationTests\Fitnet.Offers.IntegrationTests.csproj", "{9519150F-8551-4495-BAE2-C27FBE5941C5}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fitnet.Passes.Api", "Passes\Fitnet.Passes.Api\Fitnet.Passes.Api.csproj", "{1D4565FB-08E5-43F2-82D3-797285CD32BA}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fitnet.Passes.DataAccess", "Passes\Fitnet.Passes.DataAccess\Fitnet.Passes.DataAccess.csproj", "{1DA5AD76-13A7-4C62-A26E-A7D4B821D240}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fitnet.Passes.IntegrationEvents", "Passes\Fitnet.Passes.IntegrationEvents\Fitnet.Passes.IntegrationEvents.csproj", "{89324825-A7A4-4435-8BCC-FF0AF1D0C062}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fitnet.Passes.IntegrationTests", "Passes\Tests\Fitnet.Passes.IntegrationTests\Fitnet.Passes.IntegrationTests.csproj", "{14921CCC-31C9-4AA1-B9E9-81E23DE2FED1}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fitnet.Reports.IntegrationTests", "Reports\Tests\Fitnet.Reports.IntegrationTests\Fitnet.Reports.IntegrationTests.csproj", "{406F5F6C-2BAD-4447-8A45-0E9954CA9168}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fitnet.Reports", "Reports\Fitnet.Reports\Fitnet.Reports.csproj", "{76B919C8-0434-4A54-AFD3-07F817CCEC38}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {F794BA2B-0F1A-4D1C-93B8-32B916FDEDEC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F794BA2B-0F1A-4D1C-93B8-32B916FDEDEC}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F794BA2B-0F1A-4D1C-93B8-32B916FDEDEC}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F794BA2B-0F1A-4D1C-93B8-32B916FDEDEC}.Release|Any CPU.Build.0 = Release|Any CPU
- {E104E7B5-2AFD-4C63-995E-A64D4829F280}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E104E7B5-2AFD-4C63-995E-A64D4829F280}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E104E7B5-2AFD-4C63-995E-A64D4829F280}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E104E7B5-2AFD-4C63-995E-A64D4829F280}.Release|Any CPU.Build.0 = Release|Any CPU
- {C4ECAA9E-78CE-40D6-806A-936CDC5137DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {C4ECAA9E-78CE-40D6-806A-936CDC5137DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {C4ECAA9E-78CE-40D6-806A-936CDC5137DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {C4ECAA9E-78CE-40D6-806A-936CDC5137DB}.Release|Any CPU.Build.0 = Release|Any CPU
- {9519150F-8551-4495-BAE2-C27FBE5941C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {9519150F-8551-4495-BAE2-C27FBE5941C5}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {9519150F-8551-4495-BAE2-C27FBE5941C5}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {9519150F-8551-4495-BAE2-C27FBE5941C5}.Release|Any CPU.Build.0 = Release|Any CPU
- {1D4565FB-08E5-43F2-82D3-797285CD32BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1D4565FB-08E5-43F2-82D3-797285CD32BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1D4565FB-08E5-43F2-82D3-797285CD32BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1D4565FB-08E5-43F2-82D3-797285CD32BA}.Release|Any CPU.Build.0 = Release|Any CPU
- {1DA5AD76-13A7-4C62-A26E-A7D4B821D240}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1DA5AD76-13A7-4C62-A26E-A7D4B821D240}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1DA5AD76-13A7-4C62-A26E-A7D4B821D240}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1DA5AD76-13A7-4C62-A26E-A7D4B821D240}.Release|Any CPU.Build.0 = Release|Any CPU
- {89324825-A7A4-4435-8BCC-FF0AF1D0C062}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {89324825-A7A4-4435-8BCC-FF0AF1D0C062}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {89324825-A7A4-4435-8BCC-FF0AF1D0C062}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {89324825-A7A4-4435-8BCC-FF0AF1D0C062}.Release|Any CPU.Build.0 = Release|Any CPU
- {14921CCC-31C9-4AA1-B9E9-81E23DE2FED1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {14921CCC-31C9-4AA1-B9E9-81E23DE2FED1}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {14921CCC-31C9-4AA1-B9E9-81E23DE2FED1}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {14921CCC-31C9-4AA1-B9E9-81E23DE2FED1}.Release|Any CPU.Build.0 = Release|Any CPU
- {406F5F6C-2BAD-4447-8A45-0E9954CA9168}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {406F5F6C-2BAD-4447-8A45-0E9954CA9168}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {406F5F6C-2BAD-4447-8A45-0E9954CA9168}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {406F5F6C-2BAD-4447-8A45-0E9954CA9168}.Release|Any CPU.Build.0 = Release|Any CPU
- {76B919C8-0434-4A54-AFD3-07F817CCEC38}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {76B919C8-0434-4A54-AFD3-07F817CCEC38}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {76B919C8-0434-4A54-AFD3-07F817CCEC38}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {76B919C8-0434-4A54-AFD3-07F817CCEC38}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(NestedProjects) = preSolution
- {B834E435-6093-4174-9AC1-10D2E7398D31} = {732AD772-11C2-4DCC-B6DC-D59EABEF335B}
- {C8E0FB37-A103-45A9-ADCE-0FF98CA00DB1} = {8EFEF03A-A6B6-4FC6-A74C-B8D5A6889679}
- {EF30C337-A488-40BB-B774-48D7F0106FB8} = {7D3193F0-C731-4683-893F-53CE8087D7E2}
- {E104E7B5-2AFD-4C63-995E-A64D4829F280} = {8EFEF03A-A6B6-4FC6-A74C-B8D5A6889679}
- {C4ECAA9E-78CE-40D6-806A-936CDC5137DB} = {8EFEF03A-A6B6-4FC6-A74C-B8D5A6889679}
- {9519150F-8551-4495-BAE2-C27FBE5941C5} = {C8E0FB37-A103-45A9-ADCE-0FF98CA00DB1}
- {1D4565FB-08E5-43F2-82D3-797285CD32BA} = {732AD772-11C2-4DCC-B6DC-D59EABEF335B}
- {1DA5AD76-13A7-4C62-A26E-A7D4B821D240} = {732AD772-11C2-4DCC-B6DC-D59EABEF335B}
- {89324825-A7A4-4435-8BCC-FF0AF1D0C062} = {732AD772-11C2-4DCC-B6DC-D59EABEF335B}
- {14921CCC-31C9-4AA1-B9E9-81E23DE2FED1} = {B834E435-6093-4174-9AC1-10D2E7398D31}
- {406F5F6C-2BAD-4447-8A45-0E9954CA9168} = {EF30C337-A488-40BB-B774-48D7F0106FB8}
- {76B919C8-0434-4A54-AFD3-07F817CCEC38} = {7D3193F0-C731-4683-893F-53CE8087D7E2}
- EndGlobalSection
-EndGlobal
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet.slnx b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet.slnx
new file mode 100644
index 00000000..a045e7cb
--- /dev/null
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet.slnx
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet.sln.DotSettings b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet.slnx.DotSettings
similarity index 100%
rename from Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet.sln.DotSettings
rename to Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet.slnx.DotSettings
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet/Fitnet.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet/Fitnet.csproj
index 159a1ee1..efd12564 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet/Fitnet.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet/Fitnet.csproj
@@ -5,8 +5,8 @@
-
-
+
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet/Program.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet/Program.cs
index 7b12a1ce..fd3c399e 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet/Program.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Fitnet/Program.cs
@@ -38,7 +38,7 @@
app.RegisterOffers(Module.Offers);
app.RegisterReports(Module.Reports);
-app.Run();
+await app.RunAsync();
namespace EvolutionaryArchitecture.Fitnet
{
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Offers/Fitnet.Offers.Api/Fitnet.Offers.Api.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Offers/Fitnet.Offers.Api/Fitnet.Offers.Api.csproj
index 79055801..60116de6 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Offers/Fitnet.Offers.Api/Fitnet.Offers.Api.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Offers/Fitnet.Offers.Api/Fitnet.Offers.Api.csproj
@@ -14,8 +14,7 @@
-
-
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Offers/Fitnet.Offers.DataAccess/Database/Migrations/20230503180337_CreateOffersTable.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Offers/Fitnet.Offers.DataAccess/Database/Migrations/20230503180337_CreateOffersTable.cs
index 8480b7c2..b6852185 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Offers/Fitnet.Offers.DataAccess/Database/Migrations/20230503180337_CreateOffersTable.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/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-4-applying-tactical-domain-driven-design/Fitnet/Src/Offers/Fitnet.Offers.DataAccess/Fitnet.Offers.DataAccess.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Offers/Fitnet.Offers.DataAccess/Fitnet.Offers.DataAccess.csproj
index a1a6d536..48c931c8 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Offers/Fitnet.Offers.DataAccess/Fitnet.Offers.DataAccess.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Offers/Fitnet.Offers.DataAccess/Fitnet.Offers.DataAccess.csproj
@@ -1,8 +1,7 @@
-
-
-
-
+
+
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Offers/Tests/Fitnet.Offers.IntegrationTests/Fitnet.Offers.IntegrationTests.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Offers/Tests/Fitnet.Offers.IntegrationTests/Fitnet.Offers.IntegrationTests.csproj
index d0de8fbc..1c4b5131 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Offers/Tests/Fitnet.Offers.IntegrationTests/Fitnet.Offers.IntegrationTests.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Offers/Tests/Fitnet.Offers.IntegrationTests/Fitnet.Offers.IntegrationTests.csproj
@@ -5,14 +5,11 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Fitnet.Passes.Api.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Fitnet.Passes.Api.csproj
index 1e0d1354..33dcca27 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Fitnet.Passes.Api.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/Fitnet.Passes.Api.csproj
@@ -15,12 +15,11 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/GetAllPasses/GetAllPassesEndpoint.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/GetAllPasses/GetAllPassesEndpoint.cs
index 0e1dfcca..a6207097 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/GetAllPasses/GetAllPassesEndpoint.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/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-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/MarkPassAsExpired/MarkPassAsExpiredEndpoint.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/MarkPassAsExpired/MarkPassAsExpiredEndpoint.cs
index 4d3714fa..67ac2aa6 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.Api/MarkPassAsExpired/MarkPassAsExpiredEndpoint.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/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-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Database/Migrations/20230503180338_CreatePassesTable.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Database/Migrations/20230503180338_CreatePassesTable.cs
index 2f854018..b1d93547 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Database/Migrations/20230503180338_CreatePassesTable.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Database/Migrations/20230503180338_CreatePassesTable.cs
@@ -1,6 +1,7 @@
#nullable disable
namespace EvolutionaryArchitecture.Fitnet.Passes.DataAccess.Database;
+
using System;
using Microsoft.EntityFrameworkCore.Migrations;
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Fitnet.Passes.DataAccess.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Fitnet.Passes.DataAccess.csproj
index b02a1872..047f7d66 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Fitnet.Passes.DataAccess.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.DataAccess/Fitnet.Passes.DataAccess.csproj
@@ -1,10 +1,10 @@
+
-
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.IntegrationEvents/Fitnet.Passes.IntegrationEvents.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.IntegrationEvents/Fitnet.Passes.IntegrationEvents.csproj
index d3f5a374..1cd4d0d4 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.IntegrationEvents/Fitnet.Passes.IntegrationEvents.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Fitnet.Passes.IntegrationEvents/Fitnet.Passes.IntegrationEvents.csproj
@@ -1,9 +1,6 @@
-
-
-
-
-
+
+
\ No newline at end of file
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Tests/Fitnet.Passes.IntegrationTests/Fitnet.Passes.IntegrationTests.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Tests/Fitnet.Passes.IntegrationTests/Fitnet.Passes.IntegrationTests.csproj
index cc3f7132..11a17030 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Tests/Fitnet.Passes.IntegrationTests/Fitnet.Passes.IntegrationTests.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Tests/Fitnet.Passes.IntegrationTests/Fitnet.Passes.IntegrationTests.csproj
@@ -1,18 +1,16 @@
- false
+ false
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Tests/Fitnet.Passes.IntegrationTests/RegisterPass/RegisterPassTests.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Tests/Fitnet.Passes.IntegrationTests/RegisterPass/RegisterPassTests.cs
index 039d521c..0e750f73 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Tests/Fitnet.Passes.IntegrationTests/RegisterPass/RegisterPassTests.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Passes/Tests/Fitnet.Passes.IntegrationTests/RegisterPass/RegisterPassTests.cs
@@ -23,7 +23,9 @@ public RegisterPassTests(FitnetWebApplicationFactory applicationInMemor
}
[Fact]
+#pragma warning disable S2699
internal async Task Given_contract_signed_event_Then_should_register_pass()
+#pragma warning restore S2699
{
// Arrange
var @event = ContractSignedEventFaker.Create();
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Reports/Fitnet.Reports/Fitnet.Reports.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Reports/Fitnet.Reports/Fitnet.Reports.csproj
index 4a15f478..c577c6e1 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Reports/Fitnet.Reports/Fitnet.Reports.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Reports/Fitnet.Reports/Fitnet.Reports.csproj
@@ -3,14 +3,13 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Reports/Fitnet.Reports/GenerateNewPassesRegistrationsPerMonthReport/GenerateNewPassesPerMonthReportEndpoint.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Reports/Fitnet.Reports/GenerateNewPassesRegistrationsPerMonthReport/GenerateNewPassesPerMonthReportEndpoint.cs
index 93f10202..96911ad4 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Reports/Fitnet.Reports/GenerateNewPassesRegistrationsPerMonthReport/GenerateNewPassesPerMonthReportEndpoint.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/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);
}
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Reports/Tests/Fitnet.Reports.IntegrationTests/Fitnet.Reports.IntegrationTests.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Reports/Tests/Fitnet.Reports.IntegrationTests/Fitnet.Reports.IntegrationTests.csproj
index 0d26023b..fb26ed15 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Reports/Tests/Fitnet.Reports.IntegrationTests/Fitnet.Reports.IntegrationTests.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Reports/Tests/Fitnet.Reports.IntegrationTests/Fitnet.Reports.IntegrationTests.csproj
@@ -5,14 +5,10 @@
-
-
-
-
-
-
-
-
+
+
+
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/nuget.config b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/nuget.config
index d4fe5249..d167d5f4 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/nuget.config
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/nuget.config
@@ -7,11 +7,17 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
\ No newline at end of file