* Replace obsolete UserGroup Alias consts to key equivalent in tests * Update use of usergroup alias consts to key equivalent in IsSystemgroup extension method * Obsolete (internally) unused helper function which purpose doesn't even seem true * Prepped EmbedProviders for proper removal of non async methods and unneeded proxy methods * Remove obsoleted UmbracoPath and updated internal references * Corrected mistake and updated unittets * Update usergroup tests that use aliases for "system" groups * Replace more uses of globalsettings.UmbracoPath * Remove GetDateType by key non async * Cleanup some usages of hostingEnvironment.MapPathContentRoot * More easy obsoletion cleanup * Small Typeload cleanup * More obsolete removal * Deploy obsoletion cleanup * Remove obsolete methods from OEmbedProviderBase.cs --------- Co-authored-by: Zeegaan <skrivdetud@gmail.com>
38 lines
936 B
C#
38 lines
936 B
C#
// Copyright (c) Umbraco.
|
|
// See LICENSE for more details.
|
|
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
using Microsoft.Extensions.Logging;
|
|
using Moq;
|
|
using NUnit.Framework;
|
|
using Umbraco.Cms.Core;
|
|
using Umbraco.Cms.Core.Cache;
|
|
using Umbraco.Cms.Core.Composing;
|
|
using Umbraco.Cms.Core.Logging;
|
|
using Umbraco.Cms.Tests.UnitTests.TestHelpers;
|
|
|
|
namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Composing;
|
|
|
|
public abstract class ComposingTestBase
|
|
{
|
|
protected TypeLoader TypeLoader { get; private set; }
|
|
|
|
protected virtual IEnumerable<Assembly> AssembliesToScan
|
|
=> new[]
|
|
{
|
|
GetType().Assembly, // this assembly only
|
|
};
|
|
|
|
[SetUp]
|
|
public void Initialize()
|
|
{
|
|
var typeFinder = TestHelper.GetTypeFinder();
|
|
TypeLoader = new TypeLoader(
|
|
typeFinder,
|
|
Mock.Of<ILogger<TypeLoader>>(),
|
|
AssembliesToScan);
|
|
}
|
|
}
|