public AlbumService(IMusicGateway musicGateway, IFavoriteAlbumRepository favoriteAlbumRepository) { if (musicGateway == null) { throw new ArgumentNullException(nameof(musicGateway)); } if (favoriteAlbumRepository == null) { throw new ArgumentNullException(nameof(favoriteAlbumRepository)); } MusicGateway = musicGateway; FavoriteAlbumRepository = favoriteAlbumRepository; }
/// <summary> /// Initializes a new instance of the <see cref="FavoriteAlbumBusiness"/> class. /// </summary> /// <param name="favoriteAlbumRepository">The favorite album repository.</param> public FavoriteAlbumBusiness(IFavoriteAlbumRepository favoriteAlbumRepository) { _favoriteAlbumRepository = favoriteAlbumRepository; }