コード例 #1
0
        public async Task TestClientCredentials()
        {
            // Act
            var credentials = await SoundCloudOAuth.FromClientCredentials(Settings.ClientId, Settings.ClientSecret);

            // Assert
            Assert.That(credentials.AccessToken, Is.Not.Null);
        }
コード例 #2
0
        public async Task TestRefreshToken()
        {
            var initial = await SoundCloudOAuth.FromClientCredentials(Settings.ClientId, Settings.ClientSecret);

            // Act
            var credentials = await SoundCloudOAuth.FromRefreshToken(Settings.ClientId, Settings.ClientSecret, initial.RefreshToken);

            // Assert
            Assert.That(credentials.AccessToken, Is.Not.Null);
        }