Improves test suite performance - this should shed a few minutes off of the test runs.

This commit is contained in:
Shannon
2013-12-28 14:35:43 +11:00
parent b924b06062
commit 57d1ff20fd
10 changed files with 75 additions and 38 deletions

View File

@@ -78,7 +78,7 @@ namespace Umbraco.Tests.PublishedCache
//ensure the StateHelper is using our custom context
StateHelper.HttpContext = _httpContextFactory.HttpContext;
var settings = SettingsForTests.GetMockSettings();
var settings = SettingsForTests.GenerateMockSettings();
var contentMock = Mock.Get(settings.Content);
contentMock.Setup(x => x.UseLegacyXmlSchema).Returns(false);
SettingsForTests.ConfigureSettings(settings);
@@ -100,7 +100,7 @@ namespace Umbraco.Tests.PublishedCache
private void SetupForLegacy()
{
var settings = SettingsForTests.GetMockSettings();
var settings = SettingsForTests.GenerateMockSettings();
var contentMock = Mock.Get(settings.Content);
contentMock.Setup(x => x.UseLegacyXmlSchema).Returns(true);
SettingsForTests.ConfigureSettings(settings);