Add DI tests for LightInject, StashBox, Lamar#1137
Merged
jbogard merged 7 commits intoLuckyPennySoftware:masterfrom Oct 24, 2025
Merged
Add DI tests for LightInject, StashBox, Lamar#1137jbogard merged 7 commits intoLuckyPennySoftware:masterfrom
LightInject, StashBox, Lamar#1137jbogard merged 7 commits intoLuckyPennySoftware:masterfrom
Conversation
LightInjectLightInject, StashBox, Lamar
Contributor
There was a problem hiding this comment.
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 <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
jbogard
approved these changes
Oct 24, 2025
This was referenced Oct 24, 2025
This was referenced Jan 25, 2026
This was referenced Feb 2, 2026
This was referenced Feb 9, 2026
Open
This was referenced Feb 16, 2026
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.
As discussed on #1134, this is an attempt to add the remaining providers.