feat(quant): WBS-FE-BE-100 complete Vue3 Vite8 SPA & .NET10 FastEndpoints refactoring
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user