R10.11-R10.14: Add TestingDemo, SourceGenerators, Advanced, and NexumEndpoints examples - #10
Merged
Merged
Conversation
…Endpoints examples Four new example projects completing the examples/ suite: - R10.13 Advanced: depth guard, handler lifetimes, polymorphic resolution, NexumOptions - R10.11 TestingDemo: 15 xUnit tests demonstrating NexumTestHost, FakeDispatchers, assertions - R10.12 SourceGenerators: Tier 1-3 demo with educational comments - R10.14 NexumEndpoints: [NexumEndpoint] + MapNexumEndpoints() + Result mapping
There was a problem hiding this comment.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.30.
| Benchmark suite | Current: e4cdf72 | Previous: ff075a6 | Ratio |
|---|---|---|---|
Nexum.Benchmarks.NexumRegressionBenchmarks.Nexum_SimpleCommand |
77.14948952198029 ns (± 0.09129116437350118) |
57.51668103841635 ns (± 0.09281288383361881) |
1.34 |
This comment was automatically generated by workflow using github-action-benchmark.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MaxDispatchDepth,NexumDispatchDepthExceededException), handler lifetimes ([HandlerLifetime]Transient/Scoped/Singleton), polymorphic handler resolution, andNexumOptionsconfigurationNexumTestHost,FakeCommandDispatcher,FakeQueryDispatcher,InMemoryNotificationCollector, and assertion extensions (ShouldHaveDispatched<T>(),ShouldHavePublished<T>())[HandlerLifetime(Singleton)]override, and marker attributes with educational// SG:comments[NexumEndpoint]attribute,MapNexumEndpoints()SG-generated registration,Result<T>→ HTTP mapping,IVoidCommand→ 204 NoContent, and OpenAPI metadataTest plan
dotnet build Nexum.slnx— 0 warnings, 0 errorsdotnet test Nexum.slnx— 616 tests pass (including 15 new from TestingDemo)dotnet run --project examples/Nexum.Examples.Advanced— all 4 sections produce expected outputdotnet run --project examples/Nexum.Examples.SourceGenerators— Tier 1-3 demo runs correctlydotnet test examples/Nexum.Examples.TestingDemo— 15/15 passdotnet build examples/Nexum.Examples.NexumEndpoints— compiles with SG-generated endpoints