Bugsense.WPF.tests.Given_Exception_is_thrown.GetSentJson C# (CSharp) Method

GetSentJson() private method

private GetSentJson ( ) : Newtonsoft.Json.Linq.JObject
return Newtonsoft.Json.Linq.JObject
        private JObject GetSentJson()
        {
            var bugsenseRequest = _webRequestCreator.GetActualRequest(_uri);
            Assert.IsTrue(bugsenseRequest.StartsWith("data="), "Expected request to start with 'data='");
            var jsonString = Uri.UnescapeDataString(bugsenseRequest.Substring("data=".Length));
            return JObject.Parse(jsonString);
        }
    }