refactor(tests): 更新查询接口类型引用

- 将 Mediator.IQuery<int> 替换为 IQuery<int> 类型引用
- 保持空值参数测试逻辑不变
- 确保类型转换正确性
This commit is contained in:
GeWuYou 2026-02-14 14:50:35 +08:00 committed by gewuyou
parent d3e1e04e89
commit a61c796e4d

View File

@ -129,7 +129,7 @@ public class ArchitectureContextTests
public void SendQuery_Should_ThrowArgumentNullException_When_Query_IsNull()
{
// 明确指定调用旧的 IQuery<int> 重载
Assert.That(() => _context!.SendQuery((Mediator.IQuery<int>)null!),
Assert.That(() => _context!.SendQuery((IQuery<int>)null!),
Throws.ArgumentNullException.With.Property("ParamName").EqualTo("query"));
}