Beispiel #1
0
        private RestResponse GetRestReponse()
        {
            Dictionary <string, string> httpHeader = new Dictionary <string, string>();

            httpHeader.Add("X-Yandex-API-Key", AccessToken);
            httpHeader.Add("Accept", "application/json");

            RestResponse restResponse = HttpClientAsyncHelper.PerformGetRequest(Uri, httpHeader).GetAwaiter().GetResult();

            Assert.AreEqual(200, restResponse.StatusCode);
            return(restResponse);
        }