Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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;
        }