Beispiel #1
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);
        }
Beispiel #2
0
        public void TestGetUserMultipleRequests()
        {
            var resourceList = new List <IUser>
            {
                SoundCloudApiUnAuthenticated.User(509497),
                SoundCloudApiUnAuthenticated.User(509497),
                SoundCloudApiUnAuthenticated.User(509497),
            };
            var users = SoundCloudApiUnAuthenticated.Execute(resourceList);

            Assert.AreEqual(3, users.Count);
        }
Beispiel #3
0
        public void TestGetGroupMultipleRequests()
        {
            var resourceList = new List <IGroup>
            {
                SoundCloudApiUnAuthenticated.Group(1),
                SoundCloudApiUnAuthenticated.Group(1),
                SoundCloudApiUnAuthenticated.Group(1),
            };

            var groups = SoundCloudApiUnAuthenticated.Execute(resourceList);

            Assert.AreEqual(3, groups.Count);
        }
        public void TestGetPlaylistMultipleRequests()
        {
            var resourceList = new List <IPlaylist>
            {
                SoundCloudApiUnAuthenticated.Playlist(1),
                SoundCloudApiUnAuthenticated.Playlist(1),
                SoundCloudApiUnAuthenticated.Playlist(1),
            };

            var users = SoundCloudApiUnAuthenticated.Execute(resourceList);

            Assert.AreEqual(3, users.Count);
        }
        public void TestGetAppMultipleRequests()
        {
            var resourceList = new List <IApp>
            {
                SoundCloudApiUnAuthenticated.App(69118),
                SoundCloudApiUnAuthenticated.App(69118),
                SoundCloudApiUnAuthenticated.App(69118),
            };

            var app = SoundCloudApiUnAuthenticated.Execute(resourceList);

            Assert.AreEqual(3, app.Count);
        }
Beispiel #6
0
        public void TestGetCommentMultipleRequests()
        {
            var resourceList = new List <IComment>
            {
                SoundCloudApiUnAuthenticated.Comment(13685794),
                SoundCloudApiUnAuthenticated.Comment(13685794),
                SoundCloudApiUnAuthenticated.Comment(13685794),
            };

            var comments = SoundCloudApiUnAuthenticated.Execute(resourceList);

            Assert.AreEqual(3, comments.Count);
        }