mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing FeatureManagerTests
--HG-- branch : 1.x
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user