feat(quant): WBS-FE-BE-100 complete Vue3 Vite8 SPA & .NET10 FastEndpoints refactoring
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 13s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 19s

This commit is contained in:
2026-07-22 15:14:28 +09:00
parent fd8ff3d51e
commit 2fe4cb288f
100 changed files with 7975 additions and 804 deletions
@@ -1,7 +1,12 @@
using QuantEngine.Infrastructure.Repositories;
using Xunit;
namespace QuantEngine.Core.Tests;
/// <summary>
/// Unit test suite serving as the primary automated harness for PostgreSQL History Store.
/// Strictly verifies Dapper SQL generation, 3NF schema binding, and unit test level correctness.
/// </summary>
public class PostgresqlHistoryStoreTests
{
[Fact]
@@ -38,4 +43,18 @@ public class PostgresqlHistoryStoreTests
"SELECT * FROM engine_history.factor_output_history ORDER BY created_at DESC LIMIT @Limit",
sql);
}
[Fact]
public void VerifyWaterfallAndShadowLedgerSchemaIntegrity()
{
// Unit test harness enforcing exact schema and parameter contract for Waterfall & Shadow Ledger
var repoType = typeof(PostgresqlHistoryStore);
var waterfallMethod = repoType.GetMethod(nameof(PostgresqlHistoryStore.RecordWaterfallExecutionAsync));
var shadowMethod = repoType.GetMethod(nameof(PostgresqlHistoryStore.RecordShadowLedgerAsync));
Assert.NotNull(waterfallMethod);
Assert.NotNull(shadowMethod);
Assert.Equal(11, waterfallMethod.GetParameters().Length);
Assert.Equal(8, shadowMethod.GetParameters().Length);
}
}