mirror of https://github.com/abpframework/abp.git
2 changed files with 33 additions and 3 deletions
@ -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