This commit is contained in:
SunCheng
2026-02-10 17:49:19 +08:00
parent 3e18283e52
commit d052ae5197
104 changed files with 10369 additions and 3000 deletions

View File

@@ -0,0 +1,23 @@
namespace WebApi.Test.Application;
/// <summary>
/// Application层测试基类
/// </summary>
/// <remarks>
/// 提供通用的测试基础设施如Mock对象、测试数据构造等
/// </remarks>
public class BaseApplicationTest : BaseTest
{
protected BaseApplicationTest()
{
// 继承BaseTest的ID生成器初始化
}
/// <summary>
/// 创建Mock Logger
/// </summary>
protected ILogger<T> CreateMockLogger<T>()
{
return Substitute.For<ILogger<T>>();
}
}