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

@@ -288,7 +288,8 @@ namespace Umbraco.Tests.Testing
// common to all tests = cannot be overriden
private static TypeLoader CreateCommonTypeLoader(IAppPolicyCache runtimeCache, IGlobalSettings globalSettings, IProfilingLogger logger)
{
return new TypeLoader(runtimeCache, globalSettings.LocalTempPath, logger, false)
var typeFinder = new TypeFinder(Mock.Of<ILogger>());
return new TypeLoader(typeFinder, runtimeCache, globalSettings.LocalTempPath, logger, false)
{
AssembliesToScan = new[]
{