diff --git a/UnitTestProject/Modules/SwapModule/BondTrsAutoSwapScenarioTest.cs b/UnitTestProject/Modules/SwapModule/BondTrsAutoSwapScenarioTest.cs
index 35aac0b8..abed4ca8 100644
--- a/UnitTestProject/Modules/SwapModule/BondTrsAutoSwapScenarioTest.cs
+++ b/UnitTestProject/Modules/SwapModule/BondTrsAutoSwapScenarioTest.cs
@@ -68,8 +68,11 @@ namespace YLErp.Modules.SwapModule
/// 捕获生成的自动互换主事件(EventType=自动互换)
public List<(DateTime valueDate, int eventType, string reason, UnwindData data)> SwapEvents { get; } = new();
- /// 捕获落库的互换流水明细
- public List PersistedFlowEvents => DbContext.swap_flow_event.Local.ToList();
+ ///
+ /// 捕获自动互换生成的流水明细。父测试替身的 PersistFlowEvent 只写入
+ /// FlowEvents,不会写入 EF 的 Local 集合,因此断言必须复用该测试接缝。
+ ///
+ public List PersistedFlowEvents => FlowEvents;
/// 捕获资金流水的金额、操作类型和发生日
public List<(double amount, string action, DateTime valueDate)> ClientCashCallDetails { get; } = new();
@@ -134,17 +137,6 @@ namespace YLErp.Modules.SwapModule
return new swap_event { id = SwapEvents.Count };
}
- ///
- /// 捕获 SaveAutoSwapDeal 落库的 flow_event(生产写 DbContext.swap_flow_event)。
- /// 同步到 PersistedFlowEvents 供 AS_009/010/011 断言;基类 FlowEvents 仍由它填充,
- /// 供 GetConsumedInterest 真实计算已结利息。
- ///
- protected override void PersistFlowEvent(swap_flow_event flowEvent)
- {
- base.PersistFlowEvent(flowEvent);
- PersistedFlowEvents.Add(flowEvent);
- }
-
///
/// 利息腿金额直接给定(付息金额),避免把 GetInterests 的计息细节混入本用例——
/// 本文件关注的是「自动互换是否触发 / 几条 / 资金发生日 / 金额量级」,