refactor(dotnet): normalize factor computation outputs
This commit is contained in:
@@ -29,4 +29,16 @@ public class FactorComputationServiceTests
|
||||
storeMock.Verify(s => s.AppendAsync("factor_output_history", It.IsAny<IDictionary<string, object?>>()), Times.Exactly(7));
|
||||
auditTrailMock.Verify(a => a.Append("factor_audit", "005930", It.IsAny<FactorComputationAudit>()), Times.Once);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task AppendFactorOutputsAsync_RejectsBlankTicker()
|
||||
{
|
||||
var storeMock = new Mock<IPostgresqlHistoryStore>();
|
||||
var auditTrailMock = new Mock<IRuntimeAuditTrailService>();
|
||||
var history = new HistoryIngestionService(storeMock.Object);
|
||||
var service = new FactorComputationService(history, auditTrailMock.Object);
|
||||
|
||||
await Assert.ThrowsAsync<ArgumentException>(() =>
|
||||
service.AppendFactorOutputsAsync(" ", "v1", new FactorOutputs(1, 2, 3, 4, 5, 6, 7)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user