From 2dedc30358d1724f60ab646b7a24e93f3672dff1 Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Tue, 22 Sep 2026 13:03:36 +0800 Subject: Debit available cash on manual stock and bond buys with ledger events (3d-34) --- tests/FundLab.Api.Tests/FundValuationTests.fs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests/FundLab.Api.Tests/FundValuationTests.fs') diff --git a/tests/FundLab.Api.Tests/FundValuationTests.fs b/tests/FundLab.Api.Tests/FundValuationTests.fs index 409bfba..eacd5cd 100644 --- a/tests/FundLab.Api.Tests/FundValuationTests.fs +++ b/tests/FundLab.Api.Tests/FundValuationTests.fs @@ -107,7 +107,8 @@ type FundValuationTests(fixture: PostgresFixture) = repository().CreateStockTrade( key, fundId, - { InstrumentCode = code; StockName = Some "贵州茅台"; Quantity = quantity; Price = price } + { InstrumentCode = code; StockName = Some "贵州茅台"; Quantity = quantity; Price = price }, + debitAvailableCash = false ) with | StockTradeWriteResult.StockTradeCreated _ -> () @@ -133,7 +134,8 @@ type FundValuationTests(fixture: PostgresFixture) = ValueDate = None MaturityDate = None TradeDate = Some(DateOnly(2026, 9, 21)) - } + }, + debitAvailableCash = false ) with | BondTradeWriteResult.BondTradeCreated _ -> () @@ -159,7 +161,8 @@ type FundValuationTests(fixture: PostgresFixture) = ValueDate = Some(DateOnly(2020, 10, 15)) MaturityDate = Some(DateOnly(2026, 10, 15)) TradeDate = Some(DateOnly(2026, 9, 21)) - } + }, + debitAvailableCash = false ) with | BondTradeWriteResult.BondTradeCreated _ -> () -- cgit v1.2.3