Refactors the usage of ICultureDictionary so its injectable, removes more uses of Current, removes unused methods relying on System.Web
This commit is contained in:
@@ -42,6 +42,8 @@ using Umbraco.Web.Composing.CompositionExtensions;
|
||||
using Umbraco.Web.Sections;
|
||||
using Current = Umbraco.Core.Composing.Current;
|
||||
using FileSystems = Umbraco.Core.IO.FileSystems;
|
||||
using Umbraco.Web.Dictionary;
|
||||
using Umbraco.Core.Dictionary;
|
||||
|
||||
namespace Umbraco.Tests.Testing
|
||||
{
|
||||
@@ -131,7 +133,7 @@ namespace Umbraco.Tests.Testing
|
||||
// get/merge the attributes marking the method and/or the classes
|
||||
Options = TestOptionAttributeBase.GetTestOptions<UmbracoTestAttribute>();
|
||||
|
||||
// FIXME: align to runtimes & components - don't redo everything here
|
||||
// FIXME: align to runtimes & components - don't redo everything here !!!! Yes this is getting painful
|
||||
|
||||
var (logger, profiler) = GetLoggers(Options.Logger);
|
||||
var proflogger = new ProfilingLogger(logger, profiler);
|
||||
@@ -233,7 +235,8 @@ namespace Umbraco.Tests.Testing
|
||||
Composition.RegisterUnique<IContentLastChanceFinder, TestLastChanceFinder>();
|
||||
Composition.RegisterUnique<IVariationContextAccessor, TestVariationContextAccessor>();
|
||||
Composition.RegisterUnique<IPublishedSnapshotAccessor, TestPublishedSnapshotAccessor>();
|
||||
|
||||
Composition.SetCultureDictionaryFactory<DefaultCultureDictionaryFactory>();
|
||||
Composition.Register(f => f.GetInstance<ICultureDictionaryFactory>().CreateDictionary(), Lifetime.Singleton);
|
||||
// register back office sections in the order we want them rendered
|
||||
Composition.WithCollectionBuilder<SectionCollectionBuilder>().Append<ContentSection>()
|
||||
.Append<MediaSection>()
|
||||
|
||||
Reference in New Issue
Block a user