mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Update DefaultShellContextFactoryTests.cs
This commit is contained in:
@@ -21,6 +21,7 @@ namespace Orchard.Tests.Environment.ShellBuilders {
|
|||||||
public void Init() {
|
public void Init() {
|
||||||
var builder = new ContainerBuilder();
|
var builder = new ContainerBuilder();
|
||||||
builder.RegisterType<ShellContextFactory>().As<IShellContextFactory>();
|
builder.RegisterType<ShellContextFactory>().As<IShellContextFactory>();
|
||||||
|
builder.RegisterModule(new MvcModule());
|
||||||
builder.RegisterModule(new WorkContextModule());
|
builder.RegisterModule(new WorkContextModule());
|
||||||
builder.RegisterType<WorkContextAccessor>().As<IWorkContextAccessor>();
|
builder.RegisterType<WorkContextAccessor>().As<IWorkContextAccessor>();
|
||||||
builder.RegisterAutoMocking(Moq.MockBehavior.Strict);
|
builder.RegisterAutoMocking(Moq.MockBehavior.Strict);
|
||||||
@@ -93,4 +94,4 @@ namespace Orchard.Tests.Environment.ShellBuilders {
|
|||||||
Assert.That(context.Descriptor.Features, Has.Some.With.Property("Name").EqualTo("Orchard.Setup"));
|
Assert.That(context.Descriptor.Features, Has.Some.With.Property("Name").EqualTo("Orchard.Setup"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user