Example #1
0
        public async Task DetailsAsync_Test()
        {
            /* arrange */

            var request = DisqusPostDetailsRequest
                          .New(TestData.PostId)
                          .Related(DisqusPostRelated.Forum | DisqusPostRelated.Thread);

            /* act */

            var response = await Disqus.Posts.DetailsAsync(request).ConfigureAwait(false);

            /* assert */

            Assert.That(response, Is.Not.Null);
            Assert.That(response.Code, Is.EqualTo(DisqusApiResponseCode.Success));
            Assert.That(response.Response.Forum.Name, Is.Not.Null);
            Assert.That(response.Response.Thread, Is.Not.Null);
        }