Beispiel #1
0
        public async void GetByGenreAlbumListAsAdminUserOnSubsonic()
        {
            var genres = await _adminSubsonicClient.GetGenresAsync();

            var randomNumberForGenre = _random.Next(0, genres.Items.Count - 1);
            var randomGenre          = genres.Items.ElementAt(randomNumberForGenre);
            var albumList            = await _adminSubsonicClient.GetAlbumListAsync(AlbumListType.ByGenre, genre : randomGenre.Name);

            Assert.NotNull(albumList);
            Assert.NotEmpty(albumList.Albums);
        }