mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Fix unit test
Change app config to rebind mvc 1.0 to mvc 2.0 assembly, the same way we do in web.config. --HG-- branch : dev
This commit is contained in:
parent
b8aadd218e
commit
d6e1440d9b
@ -9,4 +9,12 @@
|
||||
</source>
|
||||
</sources>
|
||||
</system.diagnostics>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
|
||||
<bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0"/>
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
|
@ -26,6 +26,7 @@ namespace Orchard.Tests.Environment.ShellBuilders {
|
||||
var builder = new ContainerBuilder();
|
||||
builder.RegisterType<ShellContainerFactory>().As<IShellContainerFactory>();
|
||||
builder.RegisterType<ComponentForHostContainer>();
|
||||
builder.RegisterType<ControllerActionInvoker>().As<IActionInvoker>();
|
||||
_container = builder.Build();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user