Simplify our Poco mappers

This commit is contained in:
Stephan
2019-03-29 08:30:51 +01:00
parent 07bb7ac0f7
commit 961cbf694e
58 changed files with 750 additions and 632 deletions

View File

@@ -342,7 +342,7 @@ namespace Umbraco.Tests.Testing
Composition.RegisterUnique<IUmbracoDatabaseFactory>(f => new UmbracoDatabaseFactory(
Constants.System.UmbracoConnectionName,
Logger,
new Lazy<IMapperCollection>(Mock.Of<IMapperCollection>)));
new Lazy<IMapperCollection>(f.GetInstance<IMapperCollection>)));
Composition.RegisterUnique(f => f.TryGetInstance<IUmbracoDatabaseFactory>().SqlContext);
Composition.WithCollectionBuilder<UrlSegmentProviderCollectionBuilder>(); // empty