Fixing FeatureManagerTests

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2011-09-26 15:42:15 -07:00
parent c1058b23ad
commit 832a1d3ca0

View File

@@ -8,6 +8,7 @@ using Orchard.Caching;
using Orchard.Core.Settings.Descriptor; using Orchard.Core.Settings.Descriptor;
using Orchard.Core.Settings.Descriptor.Records; using Orchard.Core.Settings.Descriptor.Records;
using Orchard.Core.Settings.State; using Orchard.Core.Settings.State;
using Orchard.Environment.Configuration;
using Orchard.Environment.Descriptor; using Orchard.Environment.Descriptor;
using Orchard.Environment.Descriptor.Models; using Orchard.Environment.Descriptor.Models;
using Orchard.Environment.Extensions; using Orchard.Environment.Extensions;
@@ -45,6 +46,8 @@ namespace Orchard.Tests.Environment.Features {
builder.RegisterType<ShellStateManager>().As<IShellStateManager>().SingleInstance(); builder.RegisterType<ShellStateManager>().As<IShellStateManager>().SingleInstance();
builder.RegisterType<StubEventBus>().As<IEventBus>().SingleInstance(); builder.RegisterType<StubEventBus>().As<IEventBus>().SingleInstance();
builder.RegisterSource(new EventsRegistrationSource()); builder.RegisterSource(new EventsRegistrationSource());
builder.RegisterInstance(new ShellSettings { Name = "Default" });
} }
[Test] [Test]