Skip to content

Commit 750ba3f

Browse files
Merge pull request #556 from TimeWarpEngineering/Cramer/2025-08-12/032migrate-from-mediatr-to-timewarp-mediator
Migrate from MediatR to TimeWarp.Mediator and implement kebab-case naming
2 parents 737d2d4 + 87e9454 commit 750ba3f

781 files changed

Lines changed: 32681 additions & 7617 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.ai/other/nugets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ nuget_categories:
2929
for: unit testing framework
3030
- name: NSubstitute
3131
for: mocking in unit tests
32-
- name: FluentAssertions
32+
- name: Shouldly
3333
for: assertion library
3434
- name: Microsoft.Playwright
3535
for: end to end testing

.ai/other/references.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ references:
2222
resources:
2323
- Official Documentation: https://github.com/fixie/fixie/wiki
2424

25-
- name: FluentAssertions
26-
relationship: Assertion library used for tests
27-
resources:
28-
- Official Documentation: https://fluentassertions.com/introduction
29-
- GitHub Repository: https://github.com/fluentassertions/fluentassertions
30-
3125
- name: Playwright for .NET
3226
relationship: End to end testing framework
3327
resources:

.config/dotnet-tools.json

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
1-
{
2-
"version": 1,
3-
"isRoot": true,
4-
"tools": {
5-
"fixie.console": {
6-
"version": "3.4.0",
7-
"commands": [
8-
"fixie"
9-
],
10-
"rollForward": false
11-
},
12-
"dotnet-outdated-tool": {
13-
"version": "4.6.4",
14-
"commands": [
15-
"dotnet-outdated"
16-
],
17-
"rollForward": false
18-
},
19-
"dotnet-cleanup": {
20-
"version": "0.6.1",
21-
"commands": [
22-
"cleanup"
23-
],
24-
"rollForward": false
25-
},
26-
"jetbrains.dotcover.commandlinetools": {
27-
"version": "2024.1.4",
28-
"commands": [
29-
"dotnet-dotCover"
30-
],
31-
"rollForward": false
32-
},
33-
"dotnet-reportgenerator-globaltool": {
34-
"version": "5.3.6",
35-
"commands": [
36-
"reportgenerator"
37-
],
38-
"rollForward": false
39-
},
40-
"linux-dev-certs": {
41-
"version": "0.3.0",
42-
"commands": [
43-
"dotnet-linux-dev-certs"
44-
],
45-
"rollForward": false
46-
},
47-
"docfx": {
48-
"version": "2.77.0",
49-
"commands": [
50-
"docfx"
51-
],
52-
"rollForward": false
53-
}
54-
}
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"fixie.console": {
6+
"version": "3.4.0",
7+
"commands": [
8+
"fixie"
9+
],
10+
"rollForward": false
11+
},
12+
"dotnet-outdated-tool": {
13+
"version": "4.6.8",
14+
"commands": [
15+
"dotnet-outdated"
16+
],
17+
"rollForward": false
18+
},
19+
"dotnet-cleanup": {
20+
"version": "0.6.1",
21+
"commands": [
22+
"cleanup"
23+
],
24+
"rollForward": false
25+
},
26+
"jetbrains.dotcover.commandlinetools": {
27+
"version": "2024.1.4",
28+
"commands": [
29+
"dotnet-dotCover"
30+
],
31+
"rollForward": false
32+
},
33+
"dotnet-reportgenerator-globaltool": {
34+
"version": "5.3.6",
35+
"commands": [
36+
"reportgenerator"
37+
],
38+
"rollForward": false
39+
},
40+
"linux-dev-certs": {
41+
"version": "0.3.0",
42+
"commands": [
43+
"dotnet-linux-dev-certs"
44+
],
45+
"rollForward": false
46+
},
47+
"docfx": {
48+
"version": "2.77.0",
49+
"commands": [
50+
"docfx"
51+
],
52+
"rollForward": false
53+
}
54+
}
5555
}

.github/workflows/build.ps1

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,25 @@ try {
1111

1212
# Restore Dotnet Tools
1313
Invoke-CommandWithExit "dotnet tool restore"
14-
Invoke-CommandWithExit "dotnet cleanup -y"
1514

1615
# Create LocalNugetFeed directory at root
17-
New-Item -ItemType Directory -Force -Path ./LocalNugetFeed
16+
New-Item -ItemType Directory -Force -Path ./local-nuget-feed
1817

1918
# Build TimeWarp.State.Analyzer
20-
Set-Location $env:GITHUB_WORKSPACE/Source/TimeWarp.State.Analyzer/
19+
Set-Location $env:GITHUB_WORKSPACE/source/timewarp-state-analyzer/
2120
Invoke-CommandWithExit "dotnet build --configuration Debug"
2221

2322
# Build TimeWarp.State.SourceGenerator
24-
Set-Location $env:GITHUB_WORKSPACE/Source/TimeWarp.State.SourceGenerator/
23+
Set-Location $env:GITHUB_WORKSPACE/source/timewarp-state-source-generator/
2524
Invoke-CommandWithExit "dotnet build --configuration Debug"
2625

2726
# Build and Pack TimeWarp.State
28-
Set-Location $env:GITHUB_WORKSPACE/Source/TimeWarp.State/
27+
Set-Location $env:GITHUB_WORKSPACE/source/timewarp-state/
2928
Invoke-CommandWithExit "dotnet build --configuration Debug"
3029
Invoke-CommandWithExit "dotnet pack --configuration Debug"
3130

3231
# Build and Pack TimeWarp.State.Plus
33-
Set-Location $env:GITHUB_WORKSPACE/Source/TimeWarp.State.Plus/
32+
Set-Location $env:GITHUB_WORKSPACE/source/timewarp-state-plus/
3433
Invoke-CommandWithExit "dotnet build --configuration Debug"
3534
Invoke-CommandWithExit "dotnet pack --configuration Debug"
3635
}

.github/workflows/ci-build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Build and Test
33
on:
44
pull_request:
55
paths:
6-
- 'Source/**'
7-
- 'Tests/**'
6+
- 'source/**'
7+
- 'tests/**'
88
- '.github/workflows/ci-build.yml'
99
- '*.props'
1010
- '*.targets'
@@ -42,7 +42,9 @@ jobs:
4242
- name: Setup .NET
4343
uses: actions/setup-dotnet@v4
4444
with:
45-
dotnet-version: '8.0.403'
45+
dotnet-version: |
46+
9.0.x
47+
10.0.100-preview.7.25380.108
4648
4749
- name: Run Build Script
4850
run: ./.github/workflows/build.ps1
@@ -54,7 +56,7 @@ jobs:
5456

5557
# End to End Tests
5658
- name: Run End-to-End Tests
57-
run: ./RunE2ETests.ps1
59+
run: ./run-e2e-tests.ps1
5860
working-directory: ${{ github.workspace }}
5961
env:
6062
UseHttp: "true"

.github/workflows/master-build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55
branches:
66
- master
77
paths:
8-
- 'Source/**'
9-
- 'Tests/**'
8+
- 'source/**'
9+
- 'tests/**'
1010
- '.github/workflows/master-build.yml'
1111
- 'Directory.Build.props'
1212
- '*.props'
@@ -45,7 +45,9 @@ jobs:
4545
- name: Setup .NET
4646
uses: actions/setup-dotnet@v4
4747
with:
48-
dotnet-version: '8.0.403'
48+
dotnet-version: |
49+
9.0.x
50+
10.0.100-preview.7.25380.108
4951
5052
- name: Run Build Script
5153
run: ./.github/workflows/build.ps1
@@ -57,7 +59,7 @@ jobs:
5759

5860
# End to End Tests
5961
- name: Run End-to-End Tests
60-
run: ./RunE2ETests.ps1
62+
run: ./run-e2e-tests.ps1
6163
working-directory: ${{ github.workspace }}
6264
env:
6365
UseHttp: "true"

.github/workflows/test.ps1

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ try {
77

88
# Build and Run Tests
99
Set-Location $env:GITHUB_WORKSPACE
10-
Invoke-CommandWithExit "dotnet build ./Tests/TimeWarp.State.Analyzer.Tests/TimeWarp.State.Analyzer.Tests.csproj"
11-
Invoke-CommandWithExit "dotnet fixie TimeWarp.State.Analyzer.Tests"
10+
Invoke-CommandWithExit "dotnet build ./tests/timewarp-state-analyzer-tests/timewarp-state-analyzer-tests.csproj"
11+
Invoke-CommandWithExit "dotnet fixie timewarp-state-analyzer-tests"
1212

13-
Invoke-CommandWithExit "dotnet build ./Tests/TimeWarp.State.Tests/TimeWarp.State.Tests.csproj"
14-
Invoke-CommandWithExit "dotnet fixie TimeWarp.State.Tests"
13+
Invoke-CommandWithExit "dotnet build ./tests/timewarp-state-tests/timewarp-state-tests.csproj"
14+
Invoke-CommandWithExit "dotnet fixie timewarp-state-tests"
1515

16-
Invoke-CommandWithExit "dotnet build ./Tests/TimeWarp.State.Plus.Tests/TimeWarp.State.Plus.Tests.csproj"
17-
Invoke-CommandWithExit "dotnet fixie TimeWarp.State.Plus.Tests"
16+
Invoke-CommandWithExit "dotnet build ./tests/timewarp-state-plus-tests/timewarp-state-plus-tests.csproj"
17+
Invoke-CommandWithExit "dotnet fixie timewarp-state-plus-tests"
1818

19-
Invoke-CommandWithExit "dotnet build ./Tests/Client.Integration.Tests/Client.Integration.Tests.csproj"
20-
Invoke-CommandWithExit "dotnet fixie Client.Integration.Tests"
19+
Invoke-CommandWithExit "dotnet build ./tests/client-integration-tests/client-integration-tests.csproj"
20+
Invoke-CommandWithExit "dotnet fixie client-integration-tests"
2121

22-
Invoke-CommandWithExit "dotnet build ./Tests/Test.App.Architecture.Tests/Test.App.Architecture.Tests.csproj"
23-
Invoke-CommandWithExit "dotnet fixie Test.App.Architecture.Tests"
22+
Invoke-CommandWithExit "dotnet build ./tests/test-app-architecture-tests/test-app-architecture-tests.csproj"
23+
Invoke-CommandWithExit "dotnet fixie test-app-architecture-tests"
2424
}
2525
finally {
2626
# Return to the original location

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ __pycache__/
307307
# Ignore all files in Razor Source Generators directories
308308
**/Microsoft.NET.Sdk.Razor.SourceGenerators/**
309309
**/Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators/**
310-
/Tests/Test.App/Test.App.Client/Generated/**
311-
/Tests/Test.App.EndToEnd.Tests/Output/**
312-
/Tests/Test.App/Output/**
310+
/tests/test-app/test-app-client/generated/**
311+
/tests/test-app-end-to-end-tests/output/**
312+
/tests/test-app/output/**
313313

314314
/.aider.input.history.md
315315
/.aider.chat.history.md

Directory.Build.props

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<Project>
22
<!-- Set common properties regarding assembly information and nuget packages -->
33
<PropertyGroup>
4-
<TimeWarpStateVersion>12.0.0-beta.1</TimeWarpStateVersion>
4+
<TimeWarpStateVersion>12.0.0-beta.2</TimeWarpStateVersion>
55
<Authors>Steven T. Cramer</Authors>
66
<Product>TimeWarp State</Product>
77
<PackageVersion>$(TimeWarpStateVersion)</PackageVersion>
88
<PackageProjectUrl>https://timewarpengineering.github.io/timewarp-state/</PackageProjectUrl>
99
<PackageTags>TimeWarp.State; TimeWarp-State; TimeWarpState; BlazorState; Blazor; State; Blazor-State; MediatR; Mediator; TimeWarp.Mediator; Pipeline; Redux; Flux</PackageTags>
10-
<PackageIcon>Logo.png</PackageIcon>
10+
<PackageIcon>logo.png</PackageIcon>
1111
<RepositoryUrl>https://github.com/TimeWarpEngineering/timewarp-state.git</RepositoryUrl>
1212
<RepositoryType>git</RepositoryType>
1313
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1414
<PackageLicenseExpression>Unlicense</PackageLicenseExpression>
1515
<PackageReleaseNotes>https://timewarpengineering.github.io/timewarp-state/Overview.html</PackageReleaseNotes>
16-
<PackageReadmeFile>README.md</PackageReadmeFile>
16+
<PackageReadmeFile>read-me.md</PackageReadmeFile>
1717
<ContentTargetFolders>contentFiles</ContentTargetFolders>
1818
</PropertyGroup>
1919

@@ -30,7 +30,7 @@
3030
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
3131
<NoWarn>CS7035;NU1503;1503</NoWarn>
3232
<Nullable>disable</Nullable>
33-
<TargetFramework>net8.0</TargetFramework>
33+
<TargetFramework>net9.0</TargetFramework>
3434
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
3535
</PropertyGroup>
3636

@@ -67,7 +67,7 @@
6767
<Exec Command="git log -1 --format=%ct" ConsoleToMSBuild="true" Condition="'$(OS)' != 'Windows_NT'">
6868
<Output TaskParameter="ConsoleOutput" PropertyName="GitCommitTimestamp"/>
6969
</Exec>
70-
<Exec Command="pwsh -ExecutionPolicy Bypass -NoProfile -File &quot;$(MSBuildThisFileDirectory)ConvertTimestamp.ps1&quot; -GitCommitTimestamp $(GitCommitTimestamp)" ConsoleToMSBuild="true">
70+
<Exec Command="pwsh -ExecutionPolicy Bypass -NoProfile -File &quot;$(MSBuildThisFileDirectory)convert-timestamp.ps1&quot; -GitCommitTimestamp $(GitCommitTimestamp)" ConsoleToMSBuild="true">
7171
<Output TaskParameter="ConsoleOutput" PropertyName="CommitDate"/>
7272
</Exec>
7373
<PropertyGroup>
@@ -91,5 +91,6 @@
9191
<PrivateAssets>all</PrivateAssets>
9292
</PackageReference>
9393
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" />
94+
<PackageReference Include="TimeWarp.SourceGenerators" PrivateAssets="all" />
9495
</ItemGroup>
9596
</Project>

0 commit comments

Comments
 (0)