Skip to content

Add DI support to fake handlers via IServiceProvider#6

Merged
Adolfok3 merged 2 commits into
mainfrom
feature/add-serviceprovider-on-fakes
Apr 6, 2026
Merged

Add DI support to fake handlers via IServiceProvider#6
Adolfok3 merged 2 commits into
mainfrom
feature/add-serviceprovider-on-fakes

Conversation

@Adolfok3

@Adolfok3 Adolfok3 commented Apr 6, 2026

Copy link
Copy Markdown
Owner

All fake response handler delegates now receive IServiceProvider, enabling dependency injection in both sync and async request/response fakes. Updated FakeOptions API and interfaces to require IServiceProvider in all handler signatures. Refactored internal logic and tests to support DI. Updated README with DI usage examples. Bumped version to 3.0.0 due to breaking changes.

Adolfok3 added 2 commits April 6, 2026 12:33
All fake response handler delegates now receive IServiceProvider, enabling dependency injection in both sync and async request/response fakes. Updated FakeOptions API and interfaces to require IServiceProvider in all handler signatures. Refactored internal logic and tests to support DI. Updated README with DI usage examples. Bumped version to 3.0.0 due to breaking changes.
Removed unnecessary usings from MyFakeResponseClass example.
@Adolfok3 Adolfok3 merged commit e40bbf6 into main Apr 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant