Ejemplo n.º 1
0
        public async void JsonRequest_DeleteRequestTest()
        {
            const string endpoint = "https://httpbin.org/anything";
            const string jsonText = @"{ 
                    ""CaseID"": ""Unique File Name"",
                    ""Content"": ""StreamValue""
                    }";

            var request  = new JsonRequest();
            var jsonBody = JToken.Parse(jsonText);
            var result   = await request.DeleteAsync(endpoint, jsonBody);

            Assert.True(result);
        }