ScopeEventDispatcherTest needs IServiceContainer to be registered.

This commit is contained in:
Lars-Erik Aabech
2018-06-19 18:19:10 +02:00
parent e3d77fb012
commit 0e37b3b61b

View File

@@ -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<ILogger>()));
Current.Container.RegisterCollectionBuilder<MapperCollectionBuilder>();