public void Can_create_url_with_FieldId() { using (JsConfig.BeginScope()) { JsConfig.IncludePublicFields = true; var url = new FieldId(1).ToUrl("GET"); Assert.That(url, Is.EqualTo("/route/1")); } }
public void Can_create_url_with_FieldId() { using (JsConfig.With(new ServiceStack.Text.Config { IncludePublicFields = true })) { var url = new FieldId(1).ToUrl("GET"); Assert.That(url, Is.EqualTo("/route/1")); } }
public void Can_create_url_with_FieldId() { using (JsConfig.BeginScope()) { JsConfig.IncludePublicFields = true; var url = new FieldId(1).ToUrl("GET"); Assert.That(url, Is.EqualTo("/route/1")); } }