Ejemplo n.º 1
0
        public Artist(ArtistDataDto dto, IAlbumCollection albumCollection, IArtistRepository artistRepository)
        {
            Id      = dto.Id;
            Name    = dto.Name;
            Picture = dto.Picture;

            _albumCollection  = albumCollection;
            _artistRepository = artistRepository;
        }
Ejemplo n.º 2
0
        public Song(SongDataDto dto, ISongRepository songRepository, IAlbumCollection albumCollection, IArtistCollection artistCollection)
        {
            Id       = dto.Id;
            Name     = dto.Name;
            Duration = dto.Duration;
            FileName = dto.FileName;

            _albumId = dto.AlbumId;

            _songRepository   = songRepository;
            _albumCollection  = albumCollection;
            _artistCollection = artistCollection;
        }
Ejemplo n.º 3
0
        public User(UserDataDto dto, IUserRepository userRepository, ISongCollection songCollection, IAlbumCollection albumCollection, IArtistCollection artistCollection)
        {
            Id       = dto.Id;
            Username = dto.Username;

            _password = dto.Password;
            _apiToken = dto.ApiToken;

            _userRepository   = userRepository;
            _songCollection   = songCollection;
            _albumCollection  = albumCollection;
            _artistCollection = artistCollection;
        }
Ejemplo n.º 4
0
 public AlbumLikesController(IAlbumCollection albumCollection, AuthenticatedUser authenticatedUser)
 {
     _albumCollection   = albumCollection;
     _authenticatedUser = authenticatedUser;
 }
Ejemplo n.º 5
0
 public SongController(ISongCollection songCollection, IAlbumCollection albumCollection, AuthenticatedUser authenticatedUser)
 {
     _songCollection    = songCollection;
     _albumCollection   = albumCollection;
     _authenticatedUser = authenticatedUser;
 }