Uses ITypeFinder abstraction where required

This commit is contained in:
Shannon
2019-11-11 16:07:47 +11:00
parent c812e3aec9
commit d84963dac5
37 changed files with 200 additions and 92 deletions

View File

@@ -1,8 +1,11 @@
using System;
using System.Diagnostics;
using System.Web;
using Moq;
using NUnit.Framework;
using Umbraco.Core.Cache;
using Umbraco.Core.Composing;
using Umbraco.Core.Logging;
using Umbraco.Web.Cache;
namespace Umbraco.Tests.Cache
@@ -17,7 +20,8 @@ namespace Umbraco.Tests.Cache
public override void Setup()
{
base.Setup();
_appCache = new WebCachingAppCache(HttpRuntime.Cache);
var typeFinder = new TypeFinder(Mock.Of<ILogger>());
_appCache = new WebCachingAppCache(HttpRuntime.Cache, typeFinder);
}
internal override IAppCache AppCache => _appCache;