mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-06 16:16:44 +08:00
- 拆分 CqrsHandlerRegistrarTests 尾部的测试辅助类型到同目录同名文件 - 保持 CQRS handler registrar 测试行为与 XML 文档不变并消除该切片的 MA0048 warning
23 lines
559 B
C#
23 lines
559 B
C#
using System.Collections.Generic;
|
|
|
|
namespace GFramework.Cqrs.Tests.Cqrs;
|
|
|
|
/// <summary>
|
|
/// 记录确定性通知处理器的实际执行顺序。
|
|
/// </summary>
|
|
internal static class DeterministicNotificationHandlerState
|
|
{
|
|
/// <summary>
|
|
/// 获取当前测试中的通知处理器执行顺序。
|
|
/// </summary>
|
|
public static List<string> InvocationOrder { get; } = [];
|
|
|
|
/// <summary>
|
|
/// 重置共享的执行顺序状态。
|
|
/// </summary>
|
|
public static void Reset()
|
|
{
|
|
InvocationOrder.Clear();
|
|
}
|
|
}
|