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); }
public void AddDimensionValues(DimensionValues dimValues) { Dimensions.Add(dimValues); }
public void RemoveDimensionValues(DimensionValues dimValues) { Dimensions.Remove(dimValues); }
/** * Method will verify if the passed dimension values is associated with this product. */ public bool IsAssociatedWithDimensionValues(DimensionValues dimensionValuesToCheck) { return(this.Dimensions.Contains(dimensionValuesToCheck)); }