public static AlbumIdentification GetEmpty(int numberOfTracks) { var album = new AlbumIdentification { Id = null, AlbumArtist = "Unknown Artist", AlbumTitle = "Unknown Album", NumberOfTracks = numberOfTracks }; foreach (var trackNumber in Enumerable.Range(1, numberOfTracks)) { album.AddTrack(TrackIdentification.GetEmpty(album, trackNumber)); } return(album); }
public void AddTrack(TrackIdentification track) { track.SetAlbum(this); _tracks.Add(track); }