Fixes tests

This commit is contained in:
Shannon
2018-10-02 15:19:01 +02:00
parent 0c5cf5256b
commit 7196c855b2
5 changed files with 37 additions and 21 deletions

View File

@@ -172,6 +172,11 @@ namespace Umbraco.Tests.Testing
Container.RegisterSingleton<ILogger>(f => new SerilogLogger(new FileInfo(TestHelper.MapPathForTest("~/unit-test.config"))));
Container.RegisterSingleton<IProfiler>(f => new LogProfiler(f.GetInstance<ILogger>()));
}
else if (option == UmbracoTestOptions.Logger.Console)
{
Container.RegisterSingleton<ILogger>(f => new ConsoleLogger());
Container.RegisterSingleton<IProfiler>(f => new LogProfiler(f.GetInstance<ILogger>()));
}
Container.RegisterSingleton(f => new ProfilingLogger(f.GetInstance<ILogger>(), f.GetInstance<IProfiler>()));
}