refactor(dotnet): validate raw history ingestion payloads
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 17s
Validators (Pushes and Pull Requests) / validate-core (push) Has been cancelled

This commit is contained in:
2026-07-13 01:32:39 +09:00
parent 26e5f5a024
commit 5106177cbd
2 changed files with 18 additions and 4 deletions
@@ -48,4 +48,12 @@ public class HistoryIngestionServiceTests
1.0,
"PASS"));
}
[Fact]
public async Task AppendDecisionAsync_RejectsNullRawPayload()
{
var service = new HistoryIngestionService(new Mock<IPostgresqlHistoryStore>().Object);
await Assert.ThrowsAsync<ArgumentNullException>(() => service.AppendDecisionAsync((IDictionary<string, object?>)null!));
}
}