Changes methods to properties since we don't return new instances each time.

This commit is contained in:
Shannon
2020-03-23 16:41:39 +11:00
parent 299e9eb209
commit 427c44468f
5 changed files with 31 additions and 22 deletions

View File

@@ -69,7 +69,7 @@ namespace Umbraco.Tests.Integration.Implementations
public override IBackOfficeInfo GetBackOfficeInfo()
{
if (_backOfficeInfo == null)
_backOfficeInfo = new AspNetCoreBackOfficeInfo(SettingsForTests.GetDefaultGlobalSettings(GetUmbracoVersion()));
_backOfficeInfo = new AspNetCoreBackOfficeInfo(SettingsForTests.GetDefaultGlobalSettings(UmbracoVersion));
return _backOfficeInfo;
}