Conversation
…d MessageTracer Tests cover: - CorrelationPropagator: inject/extract trace context with/without Activity - PlatformMeters: all 5 Record* methods with MeterListener verification - MessageTracer: all 4 Trace* stage methods plus CompleteSuccess/CompleteFailed Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: devstress <30769729+devstress@users.noreply.github.com>
Tests cover DefaultMessageValidationService, DefaultCompensationActivityService, MessageValidationResult, MessageHistoryEntry, and MessageHistoryStatus enum. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: devstress <30769729+devstress@users.noreply.github.com>
Add 12 comprehensive unit tests covering: - HttpEnrichmentSource: constructor guards, successful fetch, URL placeholder replacement, and non-success status code handling - DatabaseEnrichmentSource: constructor guards, no-rows returns null, and row-with-data returns populated JsonObject Uses lightweight ADO.NET test doubles for database tests since DbCommand non-virtual members prevent NSubstitute mocking. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: devstress <30769729+devstress@users.noreply.github.com>
…g (Chunks 350–352) 43 new unit tests. UnitTests total: 1886 (was 1843). Chunk 350: CorrelationPropagator, PlatformMeters & MessageTracer Tests (17 tests) Chunk 351: Activity Service & Message Validation Tests (14 tests) Chunk 352: HttpEnrichmentSource & DatabaseEnrichmentSource Tests (12 tests) Agent-Logs-Url: https://github.com/devstress/My3DLearning/sessions/12fd4d83-5324-48f8-99d7-9365b3f569dc Co-authored-by: devstress <30769729+devstress@users.noreply.github.com>
…ng (Chunks 360–362, +33 tests) Chunk 360: ApiKeyAuthenticationHandler — 10 tests Chunk 361: LokiObservabilityEventLog — 11 tests Chunk 362: ControlBusPublisher & DlqManagementService — 12 tests UnitTests: 1886 → 1919. Build: 0 errors. Agent-Logs-Url: https://github.com/devstress/My3DLearning/sessions/7937c5ff-5a24-41bd-ad89-325a0dc71764 Co-authored-by: devstress <30769729+devstress@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
devstress
April 9, 2026 11:09
View session
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.
Audit identified zero dedicated tests for
ApiKeyAuthenticationHandler(security-critical),LokiObservabilityEventLog(observability event storage with Loki HTTP + in-memory fallback),ControlBusPublisher(EIP Control Bus pattern), andDlqManagementService(DLQ replay). UnitTests: 1886 → 1919.Chunk 360 — ApiKeyAuthenticationHandler (10 tests)
Adminrole /Name/apikey_prefixclaims****)InternalsVisibleTo("UnitTests")toAdmin.Api.csproj(handler isinternal sealed)FrameworkReference Microsoft.AspNetCore.ApptoUnitTests.csprojChunk 361 — LokiObservabilityEventLog (11 tests)
RecordAsync: Loki push endpoint, swallows HTTP errors without rethrowing, always persists to static fallback storeGetByCorrelationId/GetByBusinessKey: Loki query_range parsing, fallback on failure, case-insensitive business key matchMockLokiHandler(DelegatingHandler) with separate push/query status codes; reflection clears staticFallbackStorein[SetUp]Chunk 362 — ControlBusPublisher & DlqManagementService (12 tests)
PublishCommandAsync: success result, topic routing,MessageIntent.Commandon envelope, producer exception →Succeeded=falseSubscribeAsync: consumer registration on control topic, command type filteringDlqManagementService: delegates toIMessageReplayer, passesReplayFilterthrough