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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user