Esempio n. 1
0
        public async Task PutGood()
        {
            var message = Guid.NewGuid().ToString();
            var request = new JObject {
                { "message", message }
            };
            var response = await _api.PutAsync("Echo", request).ConfigureAwait(false);

            Assert.Equal($"[PUT] {message}", response);
        }
Esempio n. 2
0
        private async Task PutAsync()
        {
            var result = await _api.PutAsync("Echo", new JObject { { "message", "Three" } });

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