public void ShouldGenerateRelativeUriWithTerminatingBackslashWhenTemplateIsBackslash() { var uriFactory = new UriFactoryWorker("quotes", "/"); Assert.AreEqual("quotes/", uriFactory.CreateRelativeUri().ToString()); }
public void ShouldGenerateRelativeUriFromRoutePrefixAndTemplateAndTemplateParameters() { var uriFactory = new UriFactoryWorker("quotes", "{userId}/{id}"); Assert.AreEqual("quotes/ian/1", uriFactory.CreateRelativeUri("ian", "1").ToString()); }