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
..
2024-05-09 14:06:26 +08:00
2026-06-26 16:06:13 +08:00
2025-09-02 18:01:22 +08:00
2026-03-11 15:04:10 +08:00
2024-05-09 14:06:26 +08:00
2026-05-22 14:02:23 +08:00
2026-06-23 16:01:31 +08:00
2026-06-25 19:15:27 +08:00
2026-04-29 10:51:26 +08:00
2025-07-25 13:40:56 +08:00
2025-04-22 09:45:21 +08:00
2026-07-01 18:17:47 +08:00
2024-05-09 14:06:26 +08:00
2026-05-08 15:09:58 +08:00
2026-03-20 14:07:43 +08:00
2026-03-13 16:06:33 +08:00
2025-09-09 13:07:21 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-06-22 19:31:20 +08:00