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

            var request  = new TestWebRequest <JObject>(endpoint);
            var jsonBody = JToken.Parse(jsonText);
            var result   = await request.DeleteAsync(jsonBody);

            Assert.True(result);
        }