WIP - Updates property editor resolver to use IoC, updates base prop editor class to require an ILogger which now get's ctor injected. This is a WIP because even though it builds there's a bunch of stuff not working, need to run/fix all tests (soon)

This commit is contained in:
Shannon
2015-01-23 20:00:44 +11:00
parent a292c60402
commit 887ccaae83
58 changed files with 617 additions and 180 deletions

View File

@@ -2,6 +2,7 @@
using NUnit.Framework;
using Umbraco.Core;
using Umbraco.Core.Cache;
using Umbraco.Core.LightInject;
using Umbraco.Core.Logging;
using Umbraco.Core.ObjectResolution;
using Umbraco.Core.Persistence.Mappers;
@@ -16,13 +17,15 @@ namespace Umbraco.Tests.TestHelpers
[SetUp]
public virtual void Initialize()
{
var container = new ServiceContainer();
var logger = new ProfilingLogger(Mock.Of<ILogger>(), Mock.Of<IProfiler>());
SqlSyntaxContext.SqlSyntaxProvider = new SqlCeSyntaxProvider();
PluginManager.Current = new PluginManager(new ActivatorServiceProvider(), new NullCacheProvider(),
logger,
false);
MappingResolver.Current = new MappingResolver(
new ActivatorServiceProvider(), logger.Logger,
container, logger.Logger,
() => PluginManager.Current.ResolveAssignedMapperTypes());
Resolution.Freeze();