mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-25 13:33:28 +08:00
refactor(tests): 移除架构服务测试中的未实现方法
- 从 ArchitectureServicesTests 类中删除 QueryAsync 方法 - 从 ArchitectureServicesTests 类中删除 PublishEventAsync 方法 - 从 GameContextTests 类中删除 QueryAsync 方法 - 从 GameContextTests 类中删除 PublishEventAsync 方法 - 清理相关的方法签名和异常抛出代码 - 简化测试类结构,移除不必要的接口实现
This commit is contained in:
parent
8e88137399
commit
058dff010c
@ -356,18 +356,6 @@ public class TestArchitectureContextV3 : IArchitectureContext
|
|||||||
{
|
{
|
||||||
return _environment;
|
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
|
#endregion
|
||||||
@ -451,16 +451,4 @@ public class TestArchitectureContext : IArchitectureContext
|
|||||||
{
|
{
|
||||||
return Environment;
|
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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user