From 0e37b3b61b57c30fda197b9fd85d6ab4bc553b09 Mon Sep 17 00:00:00 2001 From: Lars-Erik Aabech Date: Tue, 19 Jun 2018 18:19:10 +0200 Subject: [PATCH] ScopeEventDispatcherTest needs IServiceContainer to be registered. --- src/Umbraco.Tests/Scoping/ScopeEventDispatcherTests.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Umbraco.Tests/Scoping/ScopeEventDispatcherTests.cs b/src/Umbraco.Tests/Scoping/ScopeEventDispatcherTests.cs index 64fa0a46ab..b295edfb8b 100644 --- a/src/Umbraco.Tests/Scoping/ScopeEventDispatcherTests.cs +++ b/src/Umbraco.Tests/Scoping/ScopeEventDispatcherTests.cs @@ -36,6 +36,10 @@ namespace Umbraco.Tests.Scoping Current.Container = new ContainerAdapter(lightinjectContainer); _testObjects = new TestObjects(lightinjectContainer); + + // fixme - move to container factory? + Current.Container.RegisterSingleton(f => (IServiceContainer)Current.Container.ConcreteContainer); + Current.Container.RegisterSingleton(f => Current.Container); Current.Container.RegisterSingleton(factory => new FileSystems(factory.TryGetInstance())); Current.Container.RegisterCollectionBuilder();