removes LegacyTransientObjectsResolver (no longer needed), makes CacheRefreshersResolver into a container resolver so we can ctor inject into them (these should NOT be transient instances), Fixes more extension methods that rely on ApplicationContext.Current which exposes a few issues like DescendantsAndSelf since that was only getting them for content types!

This commit is contained in:
Shannon
2016-05-18 18:12:41 +02:00
parent 885595b1e6
commit f51a98435f
10 changed files with 114 additions and 160 deletions

View File

@@ -29,7 +29,7 @@ namespace Umbraco.Tests.Cache.DistributedCache
ServerMessengerResolver.Current = new ServerMessengerResolver(
container, factory => new TestServerMessenger());
CacheRefreshersResolver.Current = new CacheRefreshersResolver(
new ActivatorServiceProvider(), Mock.Of<ILogger>(), () => new[] { typeof(TestCacheRefresher) });
container, Mock.Of<ILogger>(), () => new[] { typeof(TestCacheRefresher) });
Resolution.Freeze();
}