Move Configs to abstractions, and injected factory all over to create one because we need to inject stuff from system.configuration

This commit is contained in:
Bjarke Berg
2019-11-06 15:37:03 +01:00
parent 99da374fbf
commit b004bf8920
30 changed files with 87 additions and 64 deletions

View File

@@ -25,7 +25,7 @@ namespace Umbraco.Tests.Cache.DistributedCache
{
var register = RegisterFactory.Create();
var composition = new Composition(register, new TypeLoader(), Mock.Of<IProfilingLogger>(), ComponentTests.MockRuntimeState(RuntimeLevel.Run));
var composition = new Composition(register, new TypeLoader(), Mock.Of<IProfilingLogger>(), ComponentTests.MockRuntimeState(RuntimeLevel.Run), new ConfigsFactory().Create());
composition.RegisterUnique<IServerRegistrar>(_ => new TestServerRegistrar());
composition.RegisterUnique<IServerMessenger>(_ => new TestServerMessenger());