Exemplo n.º 1
0
        public async Task GetContextAsync_Test()
        {
            /* arrange */

            var request = DisqusPostGetContextRequest
                          .New(1)
                          .Depth(4);

            /* act */

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

            /* assert */

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