test: Unit tests for IMediatorSendOnly#403
Merged
Merged
Conversation
2 tasks
Copilot
AI
changed the title
[WIP] Add unit tests for IMediatorSendOnly interface
test: Unit tests for IMediatorSendOnly
Apr 16, 2026
samtrion
force-pushed
the
copilot/add-unit-tests-for-imediator-sendonly
branch
from
April 16, 2026 11:49
69f865d to
7ad14d4
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #403 +/- ##
==========================================
+ Coverage 91.98% 92.19% +0.20%
==========================================
Files 139 139
Lines 5266 5266
Branches 484 484
==========================================
+ Hits 4844 4855 +11
+ Misses 282 272 -10
+ Partials 140 139 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
samtrion
marked this pull request as ready for review
April 16, 2026 12:49
…registration Agent-Logs-Url: https://github.com/dailydevops/pulse/sessions/427f4857-e44e-4acb-a261-7eb3ab21333d Co-authored-by: samtrion <3283596+samtrion@users.noreply.github.com>
samtrion
force-pushed
the
copilot/add-unit-tests-for-imediator-sendonly
branch
from
April 16, 2026 12:49
7ad14d4 to
7cbc378
Compare
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.
Adds contract and DI integration tests for
IMediatorSendOnlyto guard against regressions in the interface hierarchy and service registration.Changes
IMediatorSendOnlyTests.cs— four focused tests:IMediatoris assignable toIMediatorSendOnly(inheritance contract)IMediatorSendOnlydeclares neitherQueryAsyncnorStreamQueryAsync(write-only boundary enforcement via reflection)IMediatorSendOnlyfrom DI returns the same scoped instance asIMediatorIMediatorSendOnlycan invoke bothSendAsyncandPublishAsyncNo production code changes required.