Beispiel #1
0
        private async Task GetAsync()
        {
            var result = await _api.GetAsync("Echo", new Dictionary <string, string> {
                { "message", "One" }
            });

            Console.WriteLine($"Get result - {result}");
        }
Beispiel #2
0
        public async Task GetGood()
        {
            var message    = Guid.NewGuid().ToString();
            var parameters = new Dictionary <string, string> {
                { "message", message }, { "abc", "123" }
            };
            var response = await _api.GetAsync("Echo", parameters).ConfigureAwait(false);

            Assert.Equal($"[GET] {message}", response);
        }