public void Check_authorization_uri_parameters()
        {
            var uri   = VkAuthorization.GetAuthorizationUri().Query;
            var query = HttpUtility.ParseQueryString(uri);

            Assert.That(query["response_type"], Is.EqualTo("token"));
            Assert.That(query["redirect_uri"], Is.EqualTo("oauth.vk.com/blank.html"));
            Assert.That(query["client_id"], Is.EqualTo(VkAuthorization.CLIENT_ID));
            Assert.That(query["scope"], Is.EqualTo(VkAuthorization.SCOPES));
            Assert.That(query["v"], Is.EqualTo(vk.Models.VkApi.VkApi.VERSION));
        }
Esempio n. 2
0
        private void NavigateToAuthorizationPage()
        {
            var destinationUrl = VkAuthorization.GetAuthorizationUri();

            WebAdress = destinationUrl.ToString();
        }