添加dto模式的demo测试
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Yi.Framework.Common.Const;
|
||||
using Yi.Framework.Core;
|
||||
using Yi.Framework.Interface;
|
||||
using Yi.Framework.Interface.RABC;
|
||||
|
||||
namespace Yi.Framework.XUnitTest
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Yi.Framework.XUnitTest
|
||||
host.ConfigureAppConfiguration(builder =>
|
||||
{
|
||||
builder.AddJsonFile("appsettings.json");
|
||||
builder.AddJsonFile("appsettings.Development.json");
|
||||
//builder.AddJsonFile("appsettings.Development.json");
|
||||
});
|
||||
host.UseServiceProviderFactory(new AutofacServiceProviderFactory());
|
||||
host.ConfigureContainer<ContainerBuilder>(containerBuilder =>
|
||||
@@ -51,6 +51,10 @@ namespace Yi.Framework.XUnitTest
|
||||
_iServiceCollection = services;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 这里配置服务
|
||||
/// </summary>
|
||||
/// <param name="services"></param>
|
||||
public void ConfigureTrueServices(IServiceCollection services)
|
||||
{
|
||||
services.AddQuartzService();
|
||||
@@ -58,6 +62,10 @@ namespace Yi.Framework.XUnitTest
|
||||
_iServiceCollection = services;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 这里兼容配置管道
|
||||
/// </summary>
|
||||
/// <param name="services"></param>
|
||||
public void Configure(IServiceProvider services)
|
||||
{
|
||||
var appBuild = WebApplication.CreateBuilder();
|
||||
|
||||
@@ -16,11 +16,6 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="appsettings.Development.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
</Content>
|
||||
<Content Include="appsettings.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
||||
|
||||
Reference in New Issue
Block a user