MVCContrib Testing Route with Areas
Posted
by xkevin
on Stack Overflow
See other posts from Stack Overflow
or by xkevin
Published on 2010-04-20T02:03:45Z
Indexed on
2010/04/30
2:57 UTC
Read the original article
Hit count: 312
Hi,
I am using MVC 2 with Area. To test routing, I am using MvcContrib.
This is the testing code:
[Test] public void Home() { MvcApplication.RegisterRoutes(RouteTable.Routes); "~/".ShouldMapTo(x => x.Login("Nps")); }
I am not sure how to call routing definition that are stored in Areas. Calling AreaRegistration.RegisterAllAreas() is not an option as it gives an exception.
Thanks Revin
© Stack Overflow or respective owner