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

@@ -42,7 +42,7 @@ namespace Umbraco.Tests.TestHelpers
logger,
false);
var composition = new Composition(container, typeLoader, Mock.Of<IProfilingLogger>(), ComponentTests.MockRuntimeState(RuntimeLevel.Run));
var composition = new Composition(container, typeLoader, Mock.Of<IProfilingLogger>(), ComponentTests.MockRuntimeState(RuntimeLevel.Run), new ConfigsFactory().Create());
composition.RegisterUnique<ILogger>(_ => Mock.Of<ILogger>());
composition.RegisterUnique<IProfiler>(_ => Mock.Of<IProfiler>());