Beispiel #1
0
        public DimensionValues GetDimensionValues(string reference)
        {
            foreach (var dimensionValue in this.Dimensions)
            {
                if (dimensionValue.Reference == reference)
                {
                    return(dimensionValue);
                }
            }
            var dimension = new DimensionValues(new List <Values>(), new List <Values>(), new List <Values>(), reference);

            this.Dimensions.Add(dimension);
            return(dimension);
        }
Beispiel #2
0
 public void AddDimensionValues(DimensionValues dimValues)
 {
     Dimensions.Add(dimValues);
 }
Beispiel #3
0
 public void RemoveDimensionValues(DimensionValues dimValues)
 {
     Dimensions.Remove(dimValues);
 }
Beispiel #4
0
 /**
  * Method will verify if the passed dimension values is associated with this product.
  */
 public bool IsAssociatedWithDimensionValues(DimensionValues dimensionValuesToCheck)
 {
     return(this.Dimensions.Contains(dimensionValuesToCheck));
 }