public async Task AsRawJsonObject(string content) { // arrange IResponse response = this.ConstructResponse(new Model <string>(content)); // act JToken json = await response .AsRawJson() .VerifyTaskResultAsync(); // assert Assert.That(json.Value <string>("Value"), Is.EqualTo(content)); }
/// <summary>Get a raw JSON representation of the response, which can also be accessed as a <c>dynamic</c> value.</summary> public async Task <JToken> AsRawJson() { IResponse response = await this.AsResponse().ConfigureAwait(false); return(await response.AsRawJson().ConfigureAwait(false)); }