Exemplo n.º 1
0
        public void TestGetUsersWithOAuthMultipleRequest()
        {
            var requests = new List <IUsers>
            {
                SoundCloudApiAuthenticated.Users(),
                SoundCloudApiAuthenticated.Users(),
                SoundCloudApiAuthenticated.Users(),
            };
            var users = SoundCloudApiAuthenticated.Execute(requests);

            Assert.Greater(users.Count, 0);
        }
Exemplo n.º 2
0
        public void TestGetUsersAsyncMultipleRequest()
        {
            Completion = new ManualResetEvent(false);
            var requests = new List <IUsers>
            {
                SoundCloudApiAuthenticated.Users(),
                SoundCloudApiAuthenticated.Users(),
                SoundCloudApiAuthenticated.Users(),
            };

            SoundCloudApiAuthenticated.ExecuteAsync(requests, UserListBuilder);
            Assert.Greater(_asyncUsersResult.Count, 0);
        }
Exemplo n.º 3
0
 public void TestGetUsersWithSearchUsingOAuthRequest()
 {
     SoundCloudApiAuthenticated.Users().Search("Owl").Get();
     Assert.Greater(_asyncUsersResult.Count, 0);
 }