IContainer.die.die.die

This commit is contained in:
Stephan
2018-11-28 12:59:40 +01:00
parent 49a0b68b28
commit f9a19ada04
82 changed files with 726 additions and 671 deletions

View File

@@ -24,12 +24,12 @@ namespace Umbraco.Tests.Cache.DistributedCache
[SetUp]
public void Setup()
{
var container = ContainerFactory.Create();
Current.Factory = container;
var composition = new Composition(container, new TypeLoader(), Mock.Of<IProfilingLogger>(), RuntimeLevel.Run);
var register = RegisterFactory.Create();
Current.Factory = register.CreateFactory(); // fixme only for LightInject
var composition = new Composition(register, new TypeLoader(), Mock.Of<IProfilingLogger>(), RuntimeLevel.Run);
container.Register<IServerRegistrar>(_ => new TestServerRegistrar());
container.RegisterSingleton<IServerMessenger>(_ => new TestServerMessenger());
register.Register<IServerRegistrar>(_ => new TestServerRegistrar());
register.RegisterSingleton<IServerMessenger>(_ => new TestServerMessenger());
composition.GetCollectionBuilder<CacheRefresherCollectionBuilder>()
.Add<TestCacheRefresher>();