public void ShouldGenerateRelativeUriWithTerminatingBackslashWhenTemplateIsBackslash() { var uriFactory = new UriFactoryWorker("encounters", "/"); Assert.AreEqual("encounters/", uriFactory.CreateRelativeUri().ToString()); }
public void ShouldGenerateRelativeUriFromRoutePrefixAndTemplateAndTemplateParameters() { var uriFactory = new UriFactoryWorker("encounters", "{encounterId}/rounds/{roundId}"); Assert.AreEqual("encounters/1/rounds/2", uriFactory.CreateRelativeUri("1", "2").ToString()); }