private void tbTemplateResourceKind_TextChanged(object sender, EventArgs e) { if (_sdataTemplateResourceRequest != null) { _sdataTemplateResourceRequest.ResourceKind = tbTemplateResourceKind.Text; tbTemplateURL.Text = _sdataTemplateResourceRequest.ToString(); } }
public void TemplateResource_Verify_ToString() { var request = new SDataTemplateResourceRequest(_service) { ResourceKind = "employees" }; var url = request.ToString(); Expect(url, Is.EqualTo("http://localhost:59213/sdata/aw/dynamic/-/employees/$template")); }
public override void Refresh() { try { _sdataTemplateResourceRequest = new SDataTemplateResourceRequest(Service) { ResourceKind = tbTemplateResourceKind.Text }; tbTemplateURL.Text = _sdataTemplateResourceRequest.ToString(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }