Skip to content

Dependency Injection tests for various providers#1134

Merged
jbogard merged 7 commits into
LuckyPennySoftware:masterfrom
jithu7432:master
Sep 5, 2025
Merged

Dependency Injection tests for various providers#1134
jbogard merged 7 commits into
LuckyPennySoftware:masterfrom
jithu7432:master

Conversation

@jithu7432
Copy link
Copy Markdown
Contributor

Reopening #1071 since, MediatR is active again.

Dependency Injection tests for various providers like:

  • Microsoft.Extensions.DependencyInjection
  • AutoFac
  • DryIoC

Used xUnit.net fixtures to abstract away the IServiceProvider, and tests are also abstracted.

If this looks good, then I can:

  • Add the remaining providers in the samples/.
  • Add tests for Generic implementations.
  • Add tests for pipelines, and behaviours.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Aug 16, 2025

CLA assistant check
All committers have signed the CLA.

@jbogard
Copy link
Copy Markdown
Collaborator

jbogard commented Aug 18, 2025

Test failures :(

- Added IServiceProvider compatible container for DryIoc
@jithu7432
Copy link
Copy Markdown
Contributor Author

Fixed em :)

@jbogard
Copy link
Copy Markdown
Collaborator

jbogard commented Sep 5, 2025

Looks good! I think some people will still complain that there's no tests with barebones containers without MS DI. But I'm not going to learn the 12 different containers, people can edit the wiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants