IMHO unit test . , , . Microsoft ().
MVCContrib.TestHelper . , , , URL SEO:
routes.MapRoute(
"Custom",
"foo/{startPage}/{endPage}",
new
{
controller = "Search",
action = "Results",
}
);
:
public class SearchController : Controller
{
public ActionResult Results(int startPage, int endPage)
{
return View();
}
}
:
"~/foo/10/20".ShouldMapTo<SearchController>(c => c.Results(10, 20));
, Search, Results startPage endPage .