コード例 #1
0
 public void IgnoreRoute1WithNullRouteCollectionThrows()
 {
     ExceptionHelper.ExpectArgumentNullException(
         delegate {
         RouteCollectionExtensions.IgnoreRoute(null, "foo");
     },
         "routes");
 }
コード例 #2
0
ファイル: RouteConfig.cs プロジェクト: MManoj915/Autotime
 public static void RegisterRoutes(RouteCollection routes)
 {
     RouteCollectionExtensions.IgnoreRoute(routes, "{resource}.axd/{*pathInfo}");
     RouteCollectionExtensions.MapRoute(routes, "Default", "{controller}/{action}/{id}", (object)new
     {
         controller = "Login",
         action     = "Index",
         id         = (UrlParameter)UrlParameter.Optional
     });
 }
コード例 #3
0
 public void IgnoreRoute1WithNullRouteCollectionThrows()
 {
     Assert.ThrowsArgumentNull(
         delegate
     {
         RouteCollectionExtensions.IgnoreRoute(null, "foo");
     },
         "routes"
         );
 }