EnergyTrading.MDM.Test.Domain.EF.Commodity.AddDetails C# (CSharp) Méthode

AddDetails() public méthode

public AddDetails ( Commodity details ) : void
details Commodity
Résultat void
        public void AddDetails(Commodity details)
        {
            // Sanity checks
            if (details == null)
            {
                throw new ArgumentNullException("details");
            }

            // Copy the bits across
            CopyDetails(details);
            this.Validity = details.Validity;

            // Trim all the mappings that extend past the end of the entity.
            this.Mappings.TrimMappings(this.Validity.Finish);
        }