feat: 单元测试添加种子数据

This commit is contained in:
陈淳
2024-01-19 18:32:08 +08:00
parent 1c32534ba1
commit 3412ce64cb
2 changed files with 1 additions and 4 deletions

View File

@@ -27,9 +27,6 @@
</ItemGroup>
<ItemGroup>
<Content Update="appsettings.Development.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Update="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>

View File

@@ -30,7 +30,7 @@ namespace Yi.Abp.Test
this.TestServiceScope = ServiceProvider.CreateScope();
this.Logger = (ILogger)this.ServiceProvider.GetRequiredService(typeof(ILogger<>).MakeGenericType(this.GetType()));
//host.InitializeAsync().Wait();
host.InitializeAsync().Wait();
}