コード例 #1
0
 public void TestGetUsersWithSearchAsyncRequest()
 {
     Completion = new ManualResetEvent(false);
     SoundCloudApiUnAuthenticated.Users().Search("Owl").GetAsync(UserListBuilder);
     Completion.WaitOne(TimeSpan.FromSeconds(100));
     Assert.Greater(_asyncUsersResult.Count, 0);
 }
コード例 #2
0
        public void TestGetUsersMultipleRequest()
        {
            var requests = new List <IUsers>
            {
                SoundCloudApiUnAuthenticated.Users(),
                SoundCloudApiUnAuthenticated.Users(),
                SoundCloudApiUnAuthenticated.Users(),
            };
            var users = SoundCloudApiUnAuthenticated.Execute(requests);

            Assert.Greater(users.Count, 0);
        }
コード例 #3
0
        public void TestGetUsersWithSearchRequest()
        {
            var user = SoundCloudApiUnAuthenticated.Users().Search("Owl").Get();

            Assert.Greater(user.Count, 0);
        }