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();