public void BuildApiPathHandlesUriDataExpressions() { var subject = new RestSharpRequestHandler("xxx"); var result = subject.BuildApiPath("/root", UriData => "https://url.com?x=y&#"); Assert.Equal("/root?UriData=https%3A%2F%2Furl.com%3Fx%3Dy%26%23", result); }
public void BuildApiPathHandlesEmptyExpressions() { var subject = new RestSharpRequestHandler("xxx"); var result = subject.BuildApiPath("/root"); Assert.Equal("/root", result); }
public void BuildApiPathHandlesBasicExpressions() { var subject = new RestSharpRequestHandler("xxx"); var result = subject.BuildApiPath("/root", SomeStringParam => "foo", test_param => true); Assert.Equal("/root?SomeStringParam=foo&test_param=true", result); }
public void BuildApiPathHandlesUriDataExpressions() { var subject = new RestSharpRequestHandler("xxx"); var result = subject.BuildApiPath("/root", UriData => "https://url.com?x=y&#"); Assert.Equal("/root?UriData=https%3A%2F%2Furl.com%3Fx%3Dy%26%23", result); }
public void BuildApiPathHandlesBasicExpressions() { var subject = new RestSharpRequestHandler("xxx"); var result = subject.BuildApiPath("/root", SomeStringParam => "foo", test_param => true); Assert.Equal("/root?SomeStringParam=foo&test_param=true", result); }
public void BuildApiPathHandlesEmptyExpressions() { var subject = new RestSharpRequestHandler("xxx"); var result = subject.BuildApiPath("/root"); Assert.Equal("/root", result); }