diff --git a/src/Umbraco.Infrastructure/Scoping/LegacyIScopeProvider.cs b/src/Umbraco.Infrastructure/Scoping/LegacyIScopeProvider.cs index b5dc069592..d56facd3b1 100644 --- a/src/Umbraco.Infrastructure/Scoping/LegacyIScopeProvider.cs +++ b/src/Umbraco.Infrastructure/Scoping/LegacyIScopeProvider.cs @@ -6,7 +6,7 @@ using Umbraco.Cms.Infrastructure.Persistence; namespace Umbraco.Cms.Core.Scoping; [Obsolete("Please use Umbraco.Cms.Infrastructure.Scoping.IScopeProvider or Umbraco.Cms.Core.Scoping.ICoreScopeProvider instead.")] -public interface IScopeProvider +public interface IScopeProvider : ICoreScopeProvider { /// /// Creates an ambient scope. diff --git a/tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/LegacyScopeProviderTests.cs b/tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/LegacyScopeProviderTests.cs index ae7859b9cc..ce0c9221e1 100644 --- a/tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/LegacyScopeProviderTests.cs +++ b/tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/LegacyScopeProviderTests.cs @@ -1,4 +1,5 @@ using NUnit.Framework; +using Umbraco.Cms.Core.Scoping; using Umbraco.Cms.Tests.Common.Testing; using Umbraco.Cms.Tests.Integration.Testing; @@ -18,4 +19,12 @@ public class LegacyScopeProviderTests : UmbracoIntegrationTest Assert.IsInstanceOf(scope); } } + + [Test] + public void LegacyScopeProvider_Always_IsACoreScopeProvider() + { + var scopeProvider = GetRequiredService(); + + Assert.IsInstanceOf(scopeProvider); + } }