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:
Renaud Paquay 2010-05-19 10:05:01 -07:00
parent b8aadd218e
commit d6e1440d9b
2 changed files with 9 additions and 0 deletions

View File

@ -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>

View File

@ -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();
}