refactor(tests): 移除架构服务测试中的未实现方法

- 从 ArchitectureServicesTests 类中删除 QueryAsync 方法
- 从 ArchitectureServicesTests 类中删除 PublishEventAsync 方法
- 从 GameContextTests 类中删除 QueryAsync 方法
- 从 GameContextTests 类中删除 PublishEventAsync 方法
- 清理相关的方法签名和异常抛出代码
- 简化测试类结构,移除不必要的接口实现
This commit is contained in:
GeWuYou 2026-02-17 17:47:14 +08:00 committed by gewuyou
parent 8e88137399
commit 058dff010c
2 changed files with 0 additions and 24 deletions

View File

@ -356,18 +356,6 @@ public class TestArchitectureContextV3 : IArchitectureContext
{
return _environment;
}
public ValueTask<TResponse> QueryAsync<TResponse>(IRequest<TResponse> query,
CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
public ValueTask PublishEventAsync<TNotification>(TNotification notification,
CancellationToken cancellationToken = default) where TNotification : INotification
{
throw new NotImplementedException();
}
}
#endregion

View File

@ -451,16 +451,4 @@ public class TestArchitectureContext : IArchitectureContext
{
return Environment;
}
public ValueTask<TResponse> QueryAsync<TResponse>(IRequest<TResponse> query,
CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
public ValueTask PublishEventAsync<TNotification>(TNotification notification,
CancellationToken cancellationToken = default) where TNotification : INotification
{
throw new NotImplementedException();
}
}