Removed unused private field and constructor variable for configuration global settings from UmbracoVersion.

Updated singleton created instances in CreateCompositionRoot to accept IOptions based parameters for configuration.
This commit is contained in:
Andy Butland
2020-09-03 11:36:57 +02:00
parent 8638419088
commit b87630250b
10 changed files with 30 additions and 41 deletions

View File

@@ -20,6 +20,7 @@ using Umbraco.Tests.Common;
using Umbraco.Web.Common.AspNetCore;
using IHostingEnvironment = Umbraco.Core.Hosting.IHostingEnvironment;
using Umbraco.Tests.Common.Builders;
using Microsoft.Extensions.Options;
namespace Umbraco.Tests.Integration.Implementations
{
@@ -105,7 +106,7 @@ namespace Umbraco.Tests.Integration.Implementations
if (_backOfficeInfo == null)
{
var globalSettings = new GlobalSettingsBuilder().Build();
_backOfficeInfo = new AspNetCoreBackOfficeInfo(globalSettings);
_backOfficeInfo = new AspNetCoreBackOfficeInfo(Options.Create(globalSettings));
}
return _backOfficeInfo;