Пример #1
0
        public CreatePlayListService CreateCreatePlayListService()
        {
            var pLayListDatabaseAdapter          = new PLayListPostgreSQLPersistenceAdapter();
            var uniqueIdentifiersInMemoryAdapter = new UniqueIdentifiersInMemoryAdapter();

            return(new CreatePlayListService(uniqueIdentifiersInMemoryAdapter, pLayListDatabaseAdapter, eventPublisher));
        }
Пример #2
0
        public RemoveTrackFromPLayListService CreateRemoveTrackFromPLayListService()
        {
            var pLayListPostgreSqlAdapter = new PLayListPostgreSQLPersistenceAdapter();
            var tracksNotifierAdapter     = new TraksSpotifyApiAdapter();

            return(new RemoveTrackFromPLayListService(pLayListPostgreSqlAdapter, tracksNotifierAdapter));
        }
Пример #3
0
        public AddTrackToPlayListService CreateAddTrackToPlayListService()
        {
            var pLayListPostgreSqlAdapter = new PLayListPostgreSQLPersistenceAdapter();
            var tracksNotifierAdapter     = new TraksSpotifyApiAdapter();

            return(new AddTrackToPlayListService(pLayListPostgreSqlAdapter, tracksNotifierAdapter));
        }
        public AddImageUrlToPlayListService CreateAddImageUrlPlayListService()
        {
            var pLayListDatabaseAdapter  = new PLayListPostgreSQLPersistenceAdapter();
            var musicCloudApiHttpAdapter = new PlayListSpotifyApiAdapter();

            return(new AddImageUrlToPlayListService(pLayListDatabaseAdapter, musicCloudApiHttpAdapter));
        }
        public CreatePlayListService CreateCreatePlayListService()
        {
            var pLayListDatabaseAdapter          = new PLayListPostgreSQLPersistenceAdapter();
            var musicCloudApiHttpAdapter         = new PlayListSpotifyApiAdapter();
            var uniqueIdentifiersInMemoryAdapter = new UniqueIdentifiersInMemoryAdapter();

            return(new CreatePlayListService(uniqueIdentifiersInMemoryAdapter, pLayListDatabaseAdapter, musicCloudApiHttpAdapter));
        }
        public RemoveTrackFromPLayListCommandHandler CreateRemoveTrackFromPLayListCommandHandler()
        {
            var pLayListPostgreSqlAdapter = new PLayListPostgreSQLPersistenceAdapter();

            return(new RemoveTrackFromPLayListCommandHandler(pLayListPostgreSqlAdapter, eventPublisher));
        }
        public AddTrackToPlayListCommandHandler CreateAddTrackToPlayListCommandHandler()
        {
            var pLayListPostgreSqlAdapter = new PLayListPostgreSQLPersistenceAdapter();

            return(new AddTrackToPlayListCommandHandler(pLayListPostgreSqlAdapter, eventPublisher));
        }
Пример #8
0
        public AddImageUrlToPlayListService CreateAddImageUrlPlayListService()
        {
            var pLayListDatabaseAdapter = new PLayListPostgreSQLPersistenceAdapter();

            return(new AddImageUrlToPlayListService(pLayListDatabaseAdapter, eventPublisher));
        }
Пример #9
0
        public RenamePlayListService CreateRenamePlayListService()
        {
            var pLayListDatabaseAdapter = new PLayListPostgreSQLPersistenceAdapter();

            return(new RenamePlayListService(pLayListDatabaseAdapter, eventPublisher));
        }
Пример #10
0
        public RemoveTrackFromPLayListService CreateRemoveTrackFromPLayListService()
        {
            var pLayListPostgreSqlAdapter = new PLayListPostgreSQLPersistenceAdapter();

            return(new RemoveTrackFromPLayListService(pLayListPostgreSqlAdapter, eventPublisher));
        }
Пример #11
0
        public AddTrackToPlayListService CreateAddTrackToPlayListService()
        {
            var pLayListPostgreSqlAdapter = new PLayListPostgreSQLPersistenceAdapter();

            return(new AddTrackToPlayListService(pLayListPostgreSqlAdapter, eventPublisher));
        }
        public ArchivePlayListCommandHandler CreateArchivePlayListCommandHandler()
        {
            var pLayListDatabaseAdapter = new PLayListPostgreSQLPersistenceAdapter();

            return(new ArchivePlayListCommandHandler(pLayListDatabaseAdapter, eventPublisher));
        }