Resvolution - ServerRegistrarResolver

This commit is contained in:
Stephan
2016-08-24 12:28:31 +02:00
parent 9782fc7083
commit 352e02f064
12 changed files with 39 additions and 89 deletions

View File

@@ -25,8 +25,7 @@ namespace Umbraco.Tests.Cache.DistributedCache
var container = new ServiceContainer();
container.ConfigureUmbracoCore();
ServerRegistrarResolver.Current = new ServerRegistrarResolver(new TestServerRegistrar());
container.Register<IServerRegistrar>(_ => new TestServerRegistrar());
container.Register<IServerMessenger>(_ => new TestServerMessenger(), new PerContainerLifetime());
CacheRefresherCollectionBuilder.Register(container)
@@ -38,8 +37,6 @@ namespace Umbraco.Tests.Cache.DistributedCache
[TearDown]
public void Teardown()
{
ServerRegistrarResolver.Reset();
Current.Reset();
}