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));
        }
        public void ToString_ShouldHandleNoSetValues()
        {
            var param = new GetTopicsParameters();

            Assert.That(param.ToString(), Is.EqualTo(string.Empty));
        }
Exemple #3
0
 public GetTopicsResponse GetTopicsMapped(GetTopicsParameters parameters)
 {
     return(new GetTopicsResponse(GetTopics(parameters)));
 }
Exemple #4
0
 public IRestResponse GetTopics(GetTopicsParameters parameters)
 {
     return(Api.Call("topics.json" + parameters, Method.GET));
 }