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)); }
public GetTopicsResponse GetTopicsMapped(GetTopicsParameters parameters) { return(new GetTopicsResponse(GetTopics(parameters))); }
public IRestResponse GetTopics(GetTopicsParameters parameters) { return(Api.Call("topics.json" + parameters, Method.GET)); }