feat: add test configuration patterns and service provider overloads documentation #56
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.
This accompanies PR BrighterCommand/Brighter#3952 and should not be merged until that PR is merged.
This pull request adds comprehensive documentation for advanced configuration patterns using service provider overloads and the Microsoft Options pattern in Brighter. The updates explain how to leverage deferred service resolution and test-specific configuration for improved flexibility and parallel test execution, both in general Brighter configuration and when using in-memory options for testing.
Configuration Patterns and Testability Enhancements:
BrighterBasicConfiguration.mddocumenting the use ofFunc<IServiceProvider, T>overloads forAddBrighter,AddProducers, andAddConsumers, enabling deferred resolution and runtime access to services from the DI container.Configure<T>andPostConfigure<T>for environment-specific and test-specific overrides.In-Memory Testing Guidance:
InMemoryOptions.md, with code samples illustrating how to use service provider overloads and the Options pattern for isolated, parallelizable test setups.BrighterBasicConfiguration.mdfor further reading on advanced configuration and test patterns.