コード例 #1
0
        public void GenerateAlbums_SimpleAlbumList_ReturnsMenuWithIncrementedTracksAmount()
        {
            var newReleases = _albumsUtils.GetNewAlbumReleases();
            var menu        = _albumsGenerator.GenerateAlbums(newReleases);

            Assert.AreEqual(newReleases.Count + 1, menu.items.Count);
        }
コード例 #2
0
        public bool SavedAlbums()
        {
            var  savedAlbums = _albumsUtils.GetSavedAlbums();
            var  albumsMenu  = _albumsGenerator.GenerateAlbums(savedAlbums);
            bool running     = true;

            while (running)
            {
                running = albumsMenu.Display();
            }

            return(true);
        }
コード例 #3
0
        public bool GetArtistsAlbums(string artistId)
        {
            var  artistsAlbums = _artistsUtils.GetArtistsAlbums(artistId);
            var  tracksMenu    = _albumsGenerator.GenerateAlbums(artistsAlbums);
            bool running       = true;

            while (running)
            {
                running = tracksMenu.Display();
            }

            return(true);
        }