예제 #1
0
 public void InBoundUrl_WithNonGetMethod_AndNonEmptyParam_IsNotRouted()
 {
     const string content = "sample-content";
     var url = new SkinsRouter.SampleRoute().Url.ToAppRelativeUrl()
         .Replace("{content}", content);
     url.WithMethodsExcept(HttpVerbs.Get).ShouldMapToNothing();
 }
예제 #2
0
 public void InBoundUrl_WithNonGetMethod_AndNoParam_IsNotRouted()
 {
     var url = new SkinsRouter.SampleRoute().AlternateUrls.Single().ToAppRelativeUrl();
     url.WithMethodsExcept(HttpVerbs.Get).ShouldMapToNothing();
 }