private void _MVC(WebContext context) { var(controller, action) = default((String, String)); var path = context.Request.path; if (String.Compare(path, "/") == 0) { (controller, action) = ParserRoute.GetDefaultMVC(_routeMVC); } else if (RouteValidator.IsValid(_routeMVC, path)) { (controller, action) = ParserRoute.GetMVC(_routeMVC, path); } ControllerInvoker.Invoke(controller, action, context); }
public void IsValidRoute() { Assert.IsTrue(_routeValidator.IsValid()); }