Creates ITypeFinder interface and simplifies type finder with TypeFinderExtensions, moves GetTypeByName to TypeHelper using assembly name parsing instead of scanning every assembly.

This commit is contained in:
Shannon
2019-11-08 14:26:06 +11:00
parent 05569440c4
commit 6398f1e216
25 changed files with 377 additions and 774 deletions

View File

@@ -37,7 +37,8 @@ namespace Umbraco.Tests.TestHelpers
var container = RegisterFactory.Create();
var logger = new ProfilingLogger(Mock.Of<ILogger>(), Mock.Of<IProfiler>());
var typeLoader = new TypeLoader(NoAppCache.Instance,
var typeFinder = new TypeFinder(Mock.Of<ILogger>());
var typeLoader = new TypeLoader(typeFinder, NoAppCache.Instance,
IOHelper.MapPath("~/App_Data/TEMP"),
logger,
false);