summaryrefslogtreecommitdiff
path: root/tests/FundLab.Api.Tests/FundValuationTests.fs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FundLab.Api.Tests/FundValuationTests.fs')
-rw-r--r--tests/FundLab.Api.Tests/FundValuationTests.fs9
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 _ -> ()