Refactor ISqlContext and SqlTemplates

This commit is contained in:
Stephan
2017-09-22 18:28:21 +02:00
parent c43bf6c741
commit ee1941b9bf
118 changed files with 619 additions and 619 deletions

View File

@@ -287,7 +287,7 @@ namespace Umbraco.Tests.Testing
sqlSyntaxProviders,
Logger,
Mock.Of<IMapperCollection>()));
Container.RegisterSingleton<IDatabaseContext>(f => f.TryGetInstance<IUmbracoDatabaseFactory>());
Container.RegisterSingleton(f => f.TryGetInstance<IUmbracoDatabaseFactory>().SqlContext);
Container.RegisterCollectionBuilder<UrlSegmentProviderCollectionBuilder>(); // empty
Container.RegisterSingleton(factory => new FileSystems(factory.TryGetInstance<ILogger>()));