Пример #1
0
        public async void JsonRequest_GetRequestTest()
        {
            const string endpoint = "https://httpbin.org/anything";
            var          request  = new JsonRequest();
            var          json     = await request.GetAsync(endpoint);

            Assert.NotNull(json);
            var result = json.ToObject <BinResult>();

            Assert.NotNull(result);
            Assert.Equal("GET", result.Method);
            Assert.Equal(endpoint, result.Url);
        }