public void ShouldInitializeWithoutRawResponse() { var response = new GetTopicsResponse(); Assert.That(response.Count, Is.EqualTo(0)); Assert.That(response.Page, Is.EqualTo(0)); Assert.That(response.Total, Is.EqualTo(0)); }
public void ShouldInitializeWithRawResponse() { var response = new GetTopicsResponse(GetResponse()); Assert.That(response.Count, Is.EqualTo(20)); Assert.That(response.Page, Is.EqualTo(1)); Assert.That(response.Total, Is.EqualTo(3)); Assert.That(response.Topics.Count(), Is.EqualTo(3)); AssertTopic(response.Topics.ElementAt(0), 1, "Sample :: General", "Sample Topic Description :: Information about our company", true, 1); AssertTopic(response.Topics.ElementAt(1), 2, "Canned Responses", "Internal responses to common questions", false, 2); AssertTopic(response.Topics.ElementAt(2), 3, "Sample :: Products", "Sample Topic Description :: Information about our products", true, 3); }