Update DefaultShellContextFactoryTests.cs

This commit is contained in:
jtkech
2015-12-11 01:39:35 +01:00
parent 095a22eb6e
commit e889288687

View File

@@ -21,6 +21,7 @@ namespace Orchard.Tests.Environment.ShellBuilders {
public void Init() {
var builder = new ContainerBuilder();
builder.RegisterType<ShellContextFactory>().As<IShellContextFactory>();
builder.RegisterModule(new MvcModule());
builder.RegisterModule(new WorkContextModule());
builder.RegisterType<WorkContextAccessor>().As<IWorkContextAccessor>();
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"));
}
}
}
}