Beispiel #1
0
        public async Task AsRawJsonArray_Dynamic(string content)
        {
            // arrange
            IResponse response = this.ConstructResponse(new[] { new Model <string>(content) });

            // act
            dynamic json = await response
                           .AsRawJsonArray()
                           .VerifyTaskResultAsync();

            // assert
            Assert.That((string)json.First.Value, Is.EqualTo(content));
        }
Beispiel #2
0
        /// <summary>Get a raw JSON array representation of the response, which can also be accessed as a <c>dynamic</c> value.</summary>
        public async Task <JArray> AsRawJsonArray()
        {
            IResponse response = await this.AsResponse().ConfigureAwait(false);

            return(await response.AsRawJsonArray().ConfigureAwait(false));
        }