test(dashboard): cover hosting and routing behavior

Merged
RE
2mo ago
+2582-25

Part of #10865.

Dashboard was the largest independently mergeable long-tail package gap in the canonical merged report at 42.24% line coverage. This change adds behavior-focused tests for dashboard hosting and dependency injection, configured options, endpoint routing and authorization, API forwarding and failure responses, host lifecycle behavior, static asset caching/compression, logging, and TimeSpan JSON conversion.

The focused Dashboard report moves from 757/1,792 lines (42.24%) to 1,167/1,792 lines (65.12%), covering 410 additional lines (+22.88 percentage points). The primary ServiceCollectionExtensions class moves from 18.18% to 100% line coverage, while the suite grows from 38 to 129 passing tests without production-code changes.

Fixes: #10865

Microsoft Reviewers: Open in CodeFlow