AB4227 - Moved Persistence Repository implementations

This commit is contained in:
Bjarke Berg
2019-12-17 16:30:26 +01:00
parent 03631a1731
commit a22824e33a
77 changed files with 111 additions and 116 deletions

View File

@@ -52,6 +52,7 @@ using Umbraco.Web.Templates;
using Umbraco.Web.PropertyEditors;
using Umbraco.Core.Dictionary;
using Umbraco.Core.Persistence.Repositories;
using Umbraco.Core.Security;
using Umbraco.Core.Services;
using Umbraco.Net;
@@ -114,6 +115,7 @@ namespace Umbraco.Tests.Testing
protected IIOHelper IOHelper { get; private set; }
protected IDataTypeService DataTypeService => Factory.GetInstance<IDataTypeService>();
protected IPasswordHasher PasswordHasher => Factory.GetInstance<IPasswordHasher>();
protected Lazy<PropertyEditorCollection> PropertyEditorCollection => new Lazy<PropertyEditorCollection>(() => Factory.GetInstance<PropertyEditorCollection>());
protected ILocalizationService LocalizationService => Factory.GetInstance<ILocalizationService>();
protected ILocalizedTextService LocalizedTextService { get; private set; }
@@ -193,6 +195,7 @@ namespace Umbraco.Tests.Testing
Composition.RegisterUnique(hostingEnvironment);
Composition.RegisterUnique(backOfficeInfo);
Composition.RegisterUnique(ipResolver);
Composition.RegisterUnique<IPasswordHasher, AspNetPasswordHasher>();
TestObjects = new TestObjects(register);
Compose();