Restructure registration of essential services, validate

This commit is contained in:
Stephan
2018-12-12 14:28:57 +01:00
parent 8c31f69a6f
commit 3e082f1a94
33 changed files with 688 additions and 126 deletions

View File

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