Ejemplo n.º 1
0
 public void Add(VegHerbSampleDTO subItem)
 {
     if (subItem != null)
     {
         this.herbs.Add(subItem);
     }
 }
Ejemplo n.º 2
0
        public HerbSampleDTO(Guid vegSampleId, VegHerbSampleDTO innerItem)
        {
            MethodContract.Assert(!Guid.Empty.Equals(vegSampleId), nameof(vegSampleId));
            MethodContract.NotNull(innerItem, nameof(innerItem));

            this.VegSampleId  = vegSampleId;
            this.TaxaUnitId   = innerItem.TaxaUnitId;
            this.PercentCover = innerItem.PercentCover;
            this.Description  = innerItem.Description;
        }