Init CurrentCore

This commit is contained in:
Bjarke Berg
2019-11-07 14:08:07 +01:00
parent f4fee90b7e
commit 4529cd408a
19 changed files with 21 additions and 9 deletions

View File

@@ -54,7 +54,7 @@ namespace Umbraco.Tests.TestHelpers
composition.RegisterUnique<ISqlContext>(_ => SqlContext);
var factory = Current.Factory = composition.CreateFactory();
var factory = Current.Factory = CurrentCore.Factory = composition.CreateFactory();
var pocoMappers = new NPoco.MapperCollection { new PocoMapper() };
var pocoDataFactory = new FluentPocoDataFactory((type, iPocoDataFactory) => new PocoDataBuilder(type, pocoMappers).Init());