diff --git a/src/Umbraco.Tests/BootManagers/CoreBootManagerTests.cs b/src/Umbraco.Tests/BootManagers/CoreBootManagerTests.cs
index 226242547c..fcd43bbcd8 100644
--- a/src/Umbraco.Tests/BootManagers/CoreBootManagerTests.cs
+++ b/src/Umbraco.Tests/BootManagers/CoreBootManagerTests.cs
@@ -13,11 +13,12 @@ using Umbraco.Core.Persistence.SqlSyntax;
using Umbraco.Tests.TestHelpers;
using umbraco.interfaces;
using Umbraco.Core.Persistence;
+using Umbraco.Core.Services;
namespace Umbraco.Tests.BootManagers
{
[TestFixture]
- public class CoreBootManagerTests : BaseUmbracoApplicationTest
+ public class CoreBootManagerTests : BaseUmbracoConfigurationTest
{
private TestApp _testApp;
@@ -37,23 +38,7 @@ namespace Umbraco.Tests.BootManagers
_testApp = null;
}
- ///
- /// Inheritors can override this if they wish to create a custom application context
- ///
- protected override void SetupApplicationContext()
- {
- base.SetupApplicationContext();
-
- var dbContextMock = new Mock(Mock.Of(), Mock.Of(), Mock.Of(), "test");
- dbContextMock.Setup(x => x.CanConnect).Returns(true);
- ApplicationContext.DatabaseContext = dbContextMock.Object;
- }
-
- protected override void FreezeResolution()
- {
- //don't freeze resolution, we'll do that in the boot manager
- }
-
+
///
/// test application using a CoreBootManager instance to boot
///
@@ -75,6 +60,20 @@ namespace Umbraco.Tests.BootManagers
{
}
+ ///
+ /// Creates and assigns the application context singleton
+ ///
+ ///
+ ///
+ protected override void CreateApplicationContext(DatabaseContext dbContext, ServiceContext serviceContext)
+ {
+ base.CreateApplicationContext(dbContext, serviceContext);
+
+ var dbContextMock = new Mock(Mock.Of(), Mock.Of(), Mock.Of(), "test");
+ dbContextMock.Setup(x => x.CanConnect).Returns(true);
+ ApplicationContext.DatabaseContext = dbContextMock.Object;
+ }
+
protected override void InitializeApplicationEventsResolver()
{
//create an empty resolver so we can add our own custom ones (don't type find)