public void CopyProperties(Contracts.Persistence.ITrack other) { other.CheckArgument(nameof(other)); Id = other.Id; AlbumId = other.AlbumId; GenreId = other.GenreId; Title = other.Title; Composer = other.Composer; Milliseconds = other.Milliseconds; Bytes = other.Bytes; UnitPrice = other.UnitPrice; }
public void CopyProperties(Contracts.Persistence.ITrack other) { if (other == null) { throw new ArgumentNullException(nameof(other)); } Id = other.Id; AlbumId = other.AlbumId; GenreId = other.GenreId; Title = other.Title; Composer = other.Composer; Milliseconds = other.Milliseconds; Bytes = other.Bytes; UnitPrice = other.UnitPrice; }