Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/8518-migrate-tests
This commit is contained in:
@@ -46,6 +46,7 @@ namespace Umbraco.Tests.Integration.Testing
|
||||
[NonParallelizable]
|
||||
public abstract class UmbracoIntegrationTest
|
||||
{
|
||||
|
||||
public static LightInjectContainer CreateUmbracoContainer(out UmbracoServiceProviderFactory serviceProviderFactory)
|
||||
{
|
||||
var container = UmbracoServiceProviderFactory.CreateServiceContainer();
|
||||
@@ -82,10 +83,10 @@ namespace Umbraco.Tests.Integration.Testing
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
public virtual async Task Setup()
|
||||
public virtual void Setup()
|
||||
{
|
||||
var hostBuilder = CreateHostBuilder();
|
||||
var host = await hostBuilder.StartAsync();
|
||||
var host = hostBuilder.StartAsync().GetAwaiter().GetResult();
|
||||
Services = host.Services;
|
||||
var app = new ApplicationBuilder(host.Services);
|
||||
Configure(app);
|
||||
@@ -232,6 +233,8 @@ namespace Umbraco.Tests.Integration.Testing
|
||||
CreateTestRuntime,
|
||||
out _);
|
||||
|
||||
services.AddSignalR();
|
||||
|
||||
services.AddUmbracoWebComponents();
|
||||
services.AddUmbracoRuntimeMinifier(Configuration);
|
||||
services.AddUmbracoBackOffice();
|
||||
|
||||
Reference in New Issue
Block a user