refactor(dotnet): validate raw history ingestion payloads
This commit is contained in:
@@ -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!));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user