mirror of https://github.com/abpframework/abp.git
committed by
GitHub
4 changed files with 34 additions and 24 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); |
||||
|
} |
||||
|
} |
||||
@ -1,20 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.AspNetCore.Builder; |
|
||||
using Microsoft.Extensions.DependencyInjection; |
|
||||
using Microsoft.Extensions.Logging; |
|
||||
using Volo.Abp; |
|
||||
|
|
||||
namespace MyCompanyName.MyProjectName; |
|
||||
|
|
||||
public class MyProjectNameWebTestStartup |
|
||||
{ |
|
||||
public void ConfigureServices(IServiceCollection services) |
|
||||
{ |
|
||||
services.AddApplication<MyProjectNameWebTestModule>(); |
|
||||
} |
|
||||
|
|
||||
public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory) |
|
||||
{ |
|
||||
app.InitializeApplication(); |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue