private void UpdateUrl()
 {
     var uri = new SDataUri(Client.Uri);
     if (!string.IsNullOrEmpty(tbTemplateResourceKind.Text))
     {
         uri.AppendPath(tbTemplateResourceKind.Text);
     }
     uri.AppendPath("$template");
     tbTemplateURL.Text = uri.ToString();
 }
 public void Appending_Segments_To_Specific_Service_Urls_Test()
 {
     var uri = new SDataUri("http://test.com/sdata/-/-/-/resource/$service/name");
     uri.AppendPath("test");
     Assert.AreEqual("resource", uri.GetPathSegment(4).Text);
     Assert.AreEqual("name", uri.GetPathSegment(6).Text);
     Assert.AreEqual("sdata/-/-/-/resource/$service/name/test", uri.DirectPath);
     Assert.AreEqual("http://test.com/sdata/-/-/-/resource/$service/name/test", uri.ToString());
 }
 private void UpdateUrl()
 {
     var uri = new SDataUri(Client.Uri);
     if (!string.IsNullOrEmpty(tbSingleResourceKind.Text))
     {
         var selector = tbSingleResourceSelector.Text;
         if (!string.IsNullOrEmpty(selector))
         {
             selector = SDataUri.FormatConstant(selector);
         }
         uri.AppendPath(new UriPathSegment(tbSingleResourceKind.Text, selector));
     }
     if (!string.IsNullOrEmpty(tbSingleResourceInclude.Text))
     {
         uri.Include = tbSingleResourceInclude.Text;
     }
     tbSingleURL.Text = uri.ToString();
 }
 private void UpdateUrl()
 {
     var uri = new SDataUri(Client.Uri)
         {
             StartIndex = (int) numStartIndex.Value,
             Count = (int) numCount.Value
         };
     if (!string.IsNullOrEmpty(tbCollectionResourceKind.Text))
     {
         uri.AppendPath(tbCollectionResourceKind.Text);
     }
     tbCollectionURL.Text = uri.ToString();
 }