mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-10 19:56:45 +08:00
refactor(tests): 重构CQRS类型转发测试以使用新命名空间
- 更新测试方法名称从 GFramework_Core_Assembly_Should_Forward_Legacy_Base_Types_To_Runtime_Assembly 为 Type_Forwarding_Should_Resolve_Cqrs_Types_From_Core_Assembly - 将断言中的程序集限定名从 GFramework.Core.Cqrs.* 更新为 GFramework.Cqrs.* - 保持对命令、查询、请求和通知基类型的验证逻辑不变
This commit is contained in:
parent
ff9b010639
commit
7b63a65f51
@ -35,14 +35,14 @@ public sealed class CqrsPublicNamespaceCompatibilityTests
|
||||
/// 验证旧的 GFramework.Core 程序集限定名仍可解析到迁移后的 runtime 实现类型。
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void GFramework_Core_Assembly_Should_Forward_Legacy_Base_Types_To_Runtime_Assembly()
|
||||
public void Type_Forwarding_Should_Resolve_Cqrs_Types_From_Core_Assembly()
|
||||
{
|
||||
Assert.Multiple(() =>
|
||||
{
|
||||
AssertForwardedType("GFramework.Core.Cqrs.Command.CommandBase`2, GFramework.Core");
|
||||
AssertForwardedType("GFramework.Core.Cqrs.Query.QueryBase`2, GFramework.Core");
|
||||
AssertForwardedType("GFramework.Core.Cqrs.Request.RequestBase`2, GFramework.Core");
|
||||
AssertForwardedType("GFramework.Core.Cqrs.Notification.NotificationBase`1, GFramework.Core");
|
||||
AssertForwardedType("GFramework.Cqrs.Command.CommandBase`2, GFramework.Core");
|
||||
AssertForwardedType("GFramework.Cqrs.Query.QueryBase`2, GFramework.Core");
|
||||
AssertForwardedType("GFramework.Cqrs.Request.RequestBase`2, GFramework.Core");
|
||||
AssertForwardedType("GFramework.Cqrs.Notification.NotificationBase`1, GFramework.Core");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user