mirror of https://github.com/abpframework/abp
commit
4c4f15f5b4
@ -0,0 +1,18 @@
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Volo.Abp.Threading;
|
||||
|
||||
namespace Volo.Abp.AspNetCore.TestBase;
|
||||
|
||||
internal class TestStartup<TStartupModule>
|
||||
{
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
AsyncHelper.RunSync(() => services.AddApplicationAsync(typeof(TStartupModule)));
|
||||
}
|
||||
|
||||
public void Configure(IApplicationBuilder app)
|
||||
{
|
||||
AsyncHelper.RunSync(app.InitializeApplicationAsync);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue