Example #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();
 }
Example #2
0
 public void InBoundUrl_WithNonGetMethod_AndNoParam_IsNotRouted()
 {
     var url = new SkinsRouter.SampleRoute().AlternateUrls.Single().ToAppRelativeUrl();
     url.WithMethodsExcept(HttpVerbs.Get).ShouldMapToNothing();
 }