This class represents the request parameters that can be used when calling the topics service.
Author: Daniel Saidi [[email protected]] Link: http://github.com/danielsaidi/desk-csharp-sdk
Inheritance: ParametersBase
        public void ToString_ShouldHandleNoSetValues()
        {
            var param = new GetTopicsParameters();

            Assert.That(param.ToString(), Is.EqualTo(string.Empty));
        }
Exemplo n.º 2
0
 public GetTopicsResponse GetTopicsMapped(GetTopicsParameters parameters)
 {
     return new GetTopicsResponse(GetTopics(parameters));
 }
        public void ToString_ShouldHandleMultipleValues(int count, int page)
        {
            var param = new GetTopicsParameters { Count = count, Page = page };

            Assert.That(param.ToString(), Is.EqualTo("?count=" + count + "&page=" + page));
        }
Exemplo n.º 4
0
 public IRestResponse GetTopics(GetTopicsParameters parameters)
 {
     return Api.Call("topics.json" + parameters, Method.GET);
 }