diff options
| author | Somhairle H. Marisol <[email protected]> | 2026-09-22 13:03:36 +0800 |
|---|---|---|
| committer | Somhairle H. Marisol <[email protected]> | 2026-09-22 13:03:36 +0800 |
| commit | 2dedc30358d1724f60ab646b7a24e93f3672dff1 (patch) | |
| tree | 515258bf4b3e1546fdf97c481e12740c573ac7c8 /tests/FundLab.Api.Tests/FundValuationTests.fs | |
| parent | 39965954968436911b32e774d32d3cca9527e4e2 (diff) | |
| download | fund-lab-2dedc30358d1724f60ab646b7a24e93f3672dff1.tar.gz | |
Debit available cash on manual stock and bond buys with ledger events (3d-34)
Diffstat (limited to 'tests/FundLab.Api.Tests/FundValuationTests.fs')
| -rw-r--r-- | tests/FundLab.Api.Tests/FundValuationTests.fs | 9 |
1 files changed, 6 insertions, 3 deletions
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 _ -> () |
