Skip to content

Improvements to the DI overview remarks - #37663

Open
guardrex wants to merge 2 commits into
mainfrom
guardrex-patch-4
Open

guardrex wants to merge 2 commits into
mainfrom
guardrex-patch-4

Conversation

@guardrex

@guardrex guardrex commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Fixes #28220

Thanks @m-brooks! 🚀

... and sorry for the delay in us reaching your issue. We've been very busy around here ..... for years! ⛏️😅😆

Tom ... Found this DI issue while surveying issues for the Blazor work. See if fleshing out these remarks looks good.


Internal previews

File Preview link
aspnetcore/fundamentals/dependency-injection.md Learn preview

Build report

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Clarify that direct construction makes the consuming class harder to unit test.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates the dependency injection overview with clearer guidance on direct dependencies and unit testing.

Changes:

  • Clarifies implementation replacement costs.
  • Expands the unit-testing rationale.
  • Updates document metadata.
File summaries
File Summary
aspnetcore/fundamentals/dependency-injection.md Updates DI guidance and metadata; clarifies the affected class in the testing explanation.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread aspnetcore/fundamentals/dependency-injection.md Outdated
Clarified the unit testing challenges related to direct dependencies in dependency injection.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@guardrex
guardrex requested a review from tdykstra September 16, 2026 15:34
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.

Rationale needed for claims made by this page

2 participants