Fixes more tests and more decoupling of singletons

This commit is contained in:
Shannon
2015-07-15 16:40:50 +02:00
parent 0efeba3744
commit 85ebcadcdd
6 changed files with 68 additions and 25 deletions

View File

@@ -60,6 +60,7 @@ namespace Umbraco.Core
[Obsolete("Use the other constructor specifying a ProfilingLogger instead")]
public ApplicationContext(CacheHelper cache)
{
if (cache == null) throw new ArgumentNullException("cache");
ApplicationCache = cache;
ProfilingLogger = new ProfilingLogger(LoggerResolver.Current.Logger, ProfilerResolver.Current.Profiler);
Init();