diff --git a/Directory.Build.props b/Directory.Build.props index 56ab2370c3..1d8f755b34 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -29,7 +29,7 @@ false - false + true 13.0.0 true true diff --git a/tests/Umbraco.Tests.Integration/Umbraco.Examine.Lucene/UmbracoExamine/IndexInitializer.cs b/tests/Umbraco.Tests.Integration/Umbraco.Examine.Lucene/UmbracoExamine/IndexInitializer.cs index 21a06c3643..0ca0b2f579 100644 --- a/tests/Umbraco.Tests.Integration/Umbraco.Examine.Lucene/UmbracoExamine/IndexInitializer.cs +++ b/tests/Umbraco.Tests.Integration/Umbraco.Examine.Lucene/UmbracoExamine/IndexInitializer.cs @@ -58,21 +58,64 @@ public class IndexInitializer _contentTypeService = contentTypeService; } + [Obsolete("Use ctor that is not obsolete. This will be removed in Umbraco 15.")] public IndexInitializer( IShortStringHelper shortStringHelper, PropertyEditorCollection propertyEditors, MediaUrlGeneratorCollection mediaUrlGenerators, IScopeProvider scopeProvider, ILoggerFactory loggerFactory, - IOptions contentSettings, IContentTypeService contentTypeService) + IOptions contentSettings, + ILocalizationService localizationService) : this( - shortStringHelper, - propertyEditors, - mediaUrlGenerators, - scopeProvider, - loggerFactory, - contentSettings, - StaticServiceProvider.Instance.GetRequiredService(), contentTypeService) + shortStringHelper, + propertyEditors, + mediaUrlGenerators, + scopeProvider, + loggerFactory, + contentSettings, + localizationService, StaticServiceProvider.Instance.GetRequiredService()) + { + + } + + [Obsolete("Use ctor that is not obsolete. This will be removed in Umbraco 15.")] + public IndexInitializer( + IShortStringHelper shortStringHelper, + PropertyEditorCollection propertyEditors, + MediaUrlGeneratorCollection mediaUrlGenerators, + IScopeProvider scopeProvider, + ILoggerFactory loggerFactory, + IOptions contentSettings, + IContentTypeService contentTypeService) + : this( + shortStringHelper, + propertyEditors, + mediaUrlGenerators, + scopeProvider, + loggerFactory, + contentSettings, + StaticServiceProvider.Instance.GetRequiredService(), contentTypeService) + { + } + + [Obsolete("Use ctor that is not obsolete. This will be removed in Umbraco 15.")] + public IndexInitializer( + IShortStringHelper shortStringHelper, + PropertyEditorCollection propertyEditors, + MediaUrlGeneratorCollection mediaUrlGenerators, + IScopeProvider scopeProvider, + ILoggerFactory loggerFactory, + IOptions contentSettings) + : this( + shortStringHelper, + propertyEditors, + mediaUrlGenerators, + scopeProvider, + loggerFactory, + contentSettings, + StaticServiceProvider.Instance.GetRequiredService(), + StaticServiceProvider.Instance.GetRequiredService()) { }