コード例 #1
0
 public void Ignore_axd_files_with_something_behind()
 {
     RouteTestHelper.AssertRoute(routes, "~/some.axd/with?something.behind",
                                 new { Controller = "", Action = "" });
 }
コード例 #2
0
 public void About()
 {
     RouteTestHelper.AssertRoute(routes, "~/About",
                                 new { Controller = "About", Action = "Index" });
 }
コード例 #3
0
 public void Ignore_axd_files()
 {
     RouteTestHelper.AssertRoute(routes, "~/some.axd",
                                 new { Controller = "", Action = "" });
 }
コード例 #4
0
 public void Category_By_Id()
 {
     RouteTestHelper.AssertRoute(routes, "~/Category/jQuery",
                                 new { Controller = "Category", Action = "Listing", categoryValue = "jQuery" });
 }
コード例 #5
0
 public void Contact()
 {
     RouteTestHelper.AssertRoute(routes, "~/Contact",
                                 new { Controller = "Contact", Action = "Index" });
 }
コード例 #6
0
 public void List_Entries_By_Year()
 {
     RouteTestHelper.AssertRoute(routes, "~/Blog/2012",
                                 new { Controller = "Blog", Action = "ListByYear", year = "2012" });
 }
コード例 #7
0
 public void List_Entries_By_Month()
 {
     RouteTestHelper.AssertRoute(routes, "~/Blog/2012/01",
                                 new { Controller = "Blog", Action = "ListByMonth", year = "2012", month = "01" });
 }
コード例 #8
0
 public void Entry_Route()
 {
     RouteTestHelper.AssertRoute(routes, "~/Blog/2012/01/01/some_blog_entry",
                                 new { Controller = "Blog", Action = "Entry", year = "2012", month = "01", day = "01", title = "some_blog_entry" });
 }
コード例 #9
0
 public void Default_Route_Blog_Index()
 {
     RouteTestHelper.AssertRoute(routes, "~/",
                                 new { Controller = "blog", Action = "index" });
 }
コード例 #10
0
 public void Ignore_xml_files()
 {
     RouteTestHelper.AssertRoute(routes, "~/wlwmanifest.xml",
                                 new { Controller = "", Action = "" });
 }