From 0b96f01769c747b2dc9a376033fbc693f1bc08d6 Mon Sep 17 00:00:00 2001
From: gewuyou <95328647+GeWuYou@users.noreply.github.com>
Date: Mon, 27 Apr 2026 19:06:58 +0800
Subject: [PATCH] =?UTF-8?q?test(cqrs):=20=E6=8B=86=E5=88=86=E5=AE=B9?=
=?UTF-8?q?=E5=99=A8=E6=B3=A8=E5=86=8C=E5=A4=B9=E5=85=B7=E9=80=9A=E7=9F=A5?=
=?UTF-8?q?=E7=B1=BB=E5=9E=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 拆分 DeterministicOrderNotification 与处理器到同目录独立文件以消除 MA0048
- 保留容器注册测试夹具行为与 XML 文档说明
---
.../Cqrs/DeterministicOrderNotification.cs | 21 +++++++++++++++++++
... DeterministicOrderNotificationHandler.cs} | 10 +++------
2 files changed, 24 insertions(+), 7 deletions(-)
create mode 100644 GFramework.Core.Tests/Cqrs/DeterministicOrderNotification.cs
rename GFramework.Core.Tests/Cqrs/{ContainerRegistrationFixtures.cs => DeterministicOrderNotificationHandler.cs} (88%)
diff --git a/GFramework.Core.Tests/Cqrs/DeterministicOrderNotification.cs b/GFramework.Core.Tests/Cqrs/DeterministicOrderNotification.cs
new file mode 100644
index 00000000..ec18eb14
--- /dev/null
+++ b/GFramework.Core.Tests/Cqrs/DeterministicOrderNotification.cs
@@ -0,0 +1,21 @@
+// Copyright (c) 2026 GeWuYou
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+using GFramework.Cqrs.Abstractions.Cqrs;
+
+namespace GFramework.Core.Tests.Cqrs;
+
+///
+/// 为容器层测试提供可扫描的最小通知夹具。
+///
+internal sealed record DeterministicOrderNotification : INotification;
diff --git a/GFramework.Core.Tests/Cqrs/ContainerRegistrationFixtures.cs b/GFramework.Core.Tests/Cqrs/DeterministicOrderNotificationHandler.cs
similarity index 88%
rename from GFramework.Core.Tests/Cqrs/ContainerRegistrationFixtures.cs
rename to GFramework.Core.Tests/Cqrs/DeterministicOrderNotificationHandler.cs
index 9406ede7..59945c83 100644
--- a/GFramework.Core.Tests/Cqrs/ContainerRegistrationFixtures.cs
+++ b/GFramework.Core.Tests/Cqrs/DeterministicOrderNotificationHandler.cs
@@ -2,24 +2,20 @@
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
-//
+//
// http://www.apache.org/licenses/LICENSE-2.0
-//
+//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+using System.Threading;
using GFramework.Cqrs.Abstractions.Cqrs;
namespace GFramework.Core.Tests.Cqrs;
-///
-/// 为容器层测试提供可扫描的最小通知夹具。
-///
-internal sealed record DeterministicOrderNotification : INotification;
-
///
/// 供容器注册测试验证程序集扫描结果的通知处理器。
///