Beispiel #1
0
        public async Task PostGood()
        {
            var message = Guid.NewGuid().ToString();
            var request = new JObject {
                { "message", message }
            };
            var response = await _api.PostAsync("Echo", request).ConfigureAwait(false);

            Assert.Equal($"[POST] {message}", response);
        }
Beispiel #2
0
        private async Task PostAsync()
        {
            var result = await _api.PostAsync("Echo", new JObject { { "message", "Two" } });

            Console.WriteLine($"Post result - {result}");
        }