コード例 #1
0
 public void ShouldGenerateRelativeUriWithTerminatingBackslashWhenTemplateIsBackslash()
 {
     var uriFactory = new UriFactoryWorker("quotes", "/");
     Assert.AreEqual("quotes/", uriFactory.CreateRelativeUri().ToString());
 }
コード例 #2
0
 public void ShouldGenerateRelativeUriFromRoutePrefixAndTemplateAndTemplateParameters()
 {
     var uriFactory = new UriFactoryWorker("quotes", "{userId}/{id}");
     Assert.AreEqual("quotes/ian/1", uriFactory.CreateRelativeUri("ian", "1").ToString());
 }