-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add DI tests for LightInject, StashBox, Lamar
#1137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
LightInjectLightInject, StashBox, Lamar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds dependency injection test coverage for three additional IoC containers: LightInject, StashBox, and Lamar. The changes extend the existing test infrastructure to verify that MediatR works correctly with these DI providers.
Key changes:
- Added test fixtures for LightInject, StashBox, and Lamar DI containers
- Created corresponding test classes that inherit from BaseAssemblyResolutionTests
- Updated project dependencies to include the necessary adapter packages
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| StashBoxDependencyInjectionTests.cs | Test class for StashBox container integration |
| StashBoxServiceProviderFixture.cs | Service provider fixture implementing StashBox container setup |
| LightInjectServiceProviderFixture.cs | Service provider fixture implementing LightInject container setup |
| LamarServiceProviderFixture.cs | Service provider fixture implementing Lamar container setup |
| MediatR.DependencyInjectionTests.csproj | Added package references for the three new DI containers |
| LightInjectDependencyInjectionTests.cs | Test class for LightInject container integration |
| LamarDependencyInjectionTests.cs | Test class for Lamar container integration |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
test/MediatR.DependencyInjectionTests/Providers/LightInjectServiceProviderFixture.cs
Outdated
Show resolved
Hide resolved
test/MediatR.DependencyInjectionTests/MediatR.DependencyInjectionTests.csproj
Show resolved
Hide resolved
test/MediatR.DependencyInjectionTests/Providers/LamarServiceProviderFixture.cs
Outdated
Show resolved
Hide resolved
test/MediatR.DependencyInjectionTests/Providers/StashBoxServiceProviderFixture.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
As discussed on #1134, this is an attempt to add the remaining providers.