Restored Umbraco.Tests (further)

This commit is contained in:
Andy Butland
2020-08-24 22:58:23 +02:00
parent 863a7195b2
commit aedd7563a4
33 changed files with 341 additions and 162 deletions

View File

@@ -13,6 +13,7 @@ using Umbraco.Core.Models;
using Umbraco.Core.Persistence.Repositories;
using Umbraco.Core.Persistence.Repositories.Implement;
using Umbraco.Core.PropertyEditors;
using Umbraco.Tests.Common.Builders;
using Umbraco.Tests.TestHelpers;
using Umbraco.Tests.Testing;
@@ -40,7 +41,8 @@ namespace Umbraco.Tests.Persistence.Repositories
private IScriptRepository CreateRepository()
{
return new ScriptRepository(_fileSystems, IOHelper, TestObjects.GetGlobalSettings());
var globalSettings = new GlobalSettingsBuilder().Build();
return new ScriptRepository(_fileSystems, IOHelper, Microsoft.Extensions.Options.Options.Create(globalSettings));
}
protected override void Compose()