hjhan
638803c497
refactor(swap): 阶段1c CalcSwapInterests虚方法接缝(testable迁移)
加1个protected virtual虚方法:
- CalcSwapInterests: 计算利息腿利息明细(原new SwapDealService(this).GetInterests)
参数与GetInterests完全一致,保证行为不变
将3个分支方法里的'new SwapDealService(this).GetInterests'替换为
调用CalcSwapInterests虚方法:
- SaveAutoEodInterestPosition(自动互换分支)
- SaveAutoEodWithCloseInterestPosition(平仓分支)
- SaveEodInterestPositionCopy(普通日分支)
测试子类override CalcSwapInterests,用StubSwapDealService
(已有89个测试验证)内存算利息,即可测全部4个分支。
验证: 93个测试全通过(T0/T1=89 + DealInterests=4),无回归。
2026-07-01 18:17:47 +08:00
..
2025-08-29 14:43:24 +08:00
2024-05-09 14:06:26 +08:00
2025-09-11 14:18:51 +08:00
2024-05-09 14:06:26 +08:00
2026-03-25 10:24:48 +08:00
2026-07-01 17:07:55 +08:00
2026-06-26 16:06:13 +08:00
2026-07-01 18:17:47 +08:00
2024-06-05 14:37:30 +08:00
2024-05-09 14:06:26 +08:00
2025-04-14 16:31:35 +08:00
2026-06-26 16:06:13 +08:00
2025-09-11 14:18:51 +08:00
2026-06-08 18:11:50 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-01-26 17:35:56 +08:00
2025-10-16 13:13:32 +08:00
2026-07-01 09:53:44 +08:00
2026-05-28 15:16:32 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-06-04 18:19:49 +08:00