Exemple #1
0
        public MainMenuGeneratorTests()
        {
            var albumUtils         = new AlbumsUtils(new AlbumsConverter(), GlobalTestInitializer.SpotifyApi);
            var tracksUtils        = new TracksUtils(new TracksConverter(), GlobalTestInitializer.SpotifyApi);
            var exitFunctions      = new ExitFunctions();
            var trackMenuFunctions =
                new TrackMenuFunctions(tracksUtils, exitFunctions, GlobalTestInitializer.SpotifyApi);
            var tracksConverter = new TracksConverter();
            var tracksGenerator = new TracksGenerator(trackMenuFunctions, exitFunctions);
            var albumsGenerator =
                new AlbumsGenerator(
                    new AlbumMenuFunctions(new AlbumsUtils(new AlbumsConverter(), GlobalTestInitializer.SpotifyApi),
                                           tracksConverter, exitFunctions, trackMenuFunctions, GlobalTestInitializer.SpotifyApi),
                    exitFunctions);
            var playlistConverter     = new PlaylistsConverter();
            var playlistUtils         = new PlaylistsUtils(playlistConverter, GlobalTestInitializer.SpotifyApi);
            var playlistMenuFunctions = new PlaylistMenuFunctions(tracksConverter, playlistUtils, trackMenuFunctions,
                                                                  exitFunctions, GlobalTestInitializer.SpotifyApi);
            var artistsUtils = new ArtistsUtils(new ArtistsConverter(), new AlbumsConverter(),
                                                GlobalTestInitializer.SpotifyApi);
            var artistsGenerator = new ArtistsGenerator(exitFunctions,
                                                        new ArtistMenuFunctions(artistsUtils, GlobalTestInitializer.SpotifyApi, tracksGenerator,
                                                                                albumsGenerator, exitFunctions));
            var tracksMenuFunctions    = new TracksMenuFunctions(tracksUtils, tracksGenerator);
            var playlistsMenuFunctions =
                new PlaylistsMenuFunctions(playlistUtils, playlistMenuFunctions, exitFunctions);
            var artistsMenuFunctions = new ArtistsMenuFunctions(artistsUtils, artistsGenerator);
            var albumsMenuFunctions  = new AlbumsMenuFunctions(albumUtils, albumsGenerator);

            var mainMenuFunctions = new MainMenuFunctions(tracksMenuFunctions, playlistsMenuFunctions,
                                                          artistsMenuFunctions, albumsMenuFunctions, exitFunctions);

            _mainMenuGenerator = new MainMenuGenerator(exitFunctions, mainMenuFunctions);
        }
 public PlaylistMenuFunctions(TracksConverter tracksConverter, PlaylistsUtils playlistsUtils, TrackMenuFunctions trackMenuFunctions, ExitFunctions exitFunctions, SpotifyApi spotifyApi)
 {
     _tracksConverter    = tracksConverter;
     _playlistsUtils     = playlistsUtils;
     _trackMenuFunctions = trackMenuFunctions;
     _exitFunctions      = exitFunctions;
     _spotifyApi         = spotifyApi;
 }
Exemple #3
0
        public TracksMenuFunctionsTests()
        {
            var tracksUtils   = new TracksUtils(new TracksConverter(), GlobalTestInitializer.SpotifyApi);
            var exitFunctions = new ExitFunctions();

            _trackMenuFunctions =
                new TrackMenuFunctions(tracksUtils, exitFunctions, GlobalTestInitializer.SpotifyApi);
        }
 public AlbumMenuFunctions(AlbumsUtils albumsUtils, TracksConverter tracksConverter, ExitFunctions exitFunctions,
                           TrackMenuFunctions trackMenuFunctions, SpotifyApi spotifyApi)
 {
     _albumsUtils        = albumsUtils;
     _tracksConverter    = tracksConverter;
     _exitFunctions      = exitFunctions;
     _trackMenuFunctions = trackMenuFunctions;
     _spotifyApi         = spotifyApi;
 }
        public TracksGeneratorTests()
        {
            _tracksUtils = new TracksUtils(new TracksConverter(), GlobalTestInitializer.SpotifyApi);
            var exitFunctions      = new ExitFunctions();
            var trackMenuFunctions =
                new TrackMenuFunctions(_tracksUtils, exitFunctions, GlobalTestInitializer.SpotifyApi);

            _tracksGenerator = new TracksGenerator(trackMenuFunctions, exitFunctions);
            _artistsUtils    = new ArtistsUtils(new ArtistsConverter(), new AlbumsConverter(),
                                                GlobalTestInitializer.SpotifyApi);
        }
Exemple #6
0
        public AlbumMenuFunctionsTests()
        {
            var albumUtils         = new AlbumsUtils(new AlbumsConverter(), GlobalTestInitializer.SpotifyApi);
            var tracksUtils        = new TracksUtils(new TracksConverter(), GlobalTestInitializer.SpotifyApi);
            var exitFunctions      = new ExitFunctions();
            var trackMenuFunctions =
                new TrackMenuFunctions(tracksUtils, exitFunctions, GlobalTestInitializer.SpotifyApi);
            var tracksConverter = new TracksConverter();

            _albumMenuFunctions = new AlbumMenuFunctions(albumUtils, tracksConverter, exitFunctions, trackMenuFunctions,
                                                         GlobalTestInitializer.SpotifyApi);
        }
        public PlaylistMenuFunctionsTests()
        {
            var tracksUtils        = new TracksUtils(new TracksConverter(), GlobalTestInitializer.SpotifyApi);
            var exitFunctions      = new ExitFunctions();
            var trackMenuFunctions =
                new TrackMenuFunctions(tracksUtils, exitFunctions, GlobalTestInitializer.SpotifyApi);
            var tracksConverter   = new TracksConverter();
            var playlistConverter = new PlaylistsConverter();
            var playlistUtils     = new PlaylistsUtils(playlistConverter, GlobalTestInitializer.SpotifyApi);

            _playlistMenuFunctions = new PlaylistMenuFunctions(tracksConverter, playlistUtils, trackMenuFunctions,
                                                               exitFunctions, GlobalTestInitializer.SpotifyApi);
        }
Exemple #8
0
        public ArtistMenuFunctionsTests()
        {
            var exitFunctions      = new ExitFunctions();
            var tracksConverter    = new TracksConverter();
            var trackMenuFunctions = new TrackMenuFunctions(
                new TracksUtils(tracksConverter, GlobalTestInitializer.SpotifyApi),
                exitFunctions, GlobalTestInitializer.SpotifyApi);
            var tracksGenerator = new TracksGenerator(trackMenuFunctions, exitFunctions);
            var albumsGenerator =
                new AlbumsGenerator(
                    new AlbumMenuFunctions(new AlbumsUtils(new AlbumsConverter(), GlobalTestInitializer.SpotifyApi),
                                           tracksConverter, exitFunctions, trackMenuFunctions, GlobalTestInitializer.SpotifyApi),
                    exitFunctions);

            _artistMenuFunctions =
                new ArtistMenuFunctions(
                    new ArtistsUtils(new ArtistsConverter(), new AlbumsConverter(), GlobalTestInitializer.SpotifyApi),
                    GlobalTestInitializer.SpotifyApi, tracksGenerator, albumsGenerator, exitFunctions);
        }
Exemple #9
0
 public TracksGenerator(TrackMenuFunctions trackMenuFunctions, ExitFunctions exitFunctions)
 {
     _trackMenuFunctions = trackMenuFunctions;
     _exitFunctions      = exitFunctions;
 }