public Album(AlbumDataDto dto, IAlbumRepository albumRepository, IArtistCollection artistCollection, ISongCollection songCollection) { Id = dto.Id; Name = dto.Name; CoverArt = dto.CoverArt; _artistId = dto.ArtistId; _albumRepository = albumRepository; _artistCollection = artistCollection; _songCollection = songCollection; }
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; }
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; }
public AuthenticatedUser(IHttpContextAccessor httpContextAccessor, IUserCollection userCollection, IArtistCollection artistCollection) { _httpContextAccessor = httpContextAccessor; _userCollection = userCollection; _artistCollection = artistCollection; }
public ArtistLikesController(IArtistCollection artistCollection, AuthenticatedUser authenticatedUser) { _artistCollection = artistCollection; _authenticatedUser = authenticatedUser; }