public void ModifyBasicMeasureUnit(BasicMeasureUnitArg arg)
        {
            if (arg == null)
            {
                throw new ArgumentsForModifyingBasicMeasureUnitCannotBeNull();
            }

            var unit = (BasicMeasureUnit)this.FindUnitFrom(arg.Id);

            unit.Modify(arg.Title, arg.TitleSlug);
        }
        public void DefineBasicMeasureUnit(BasicMeasureUnitArg arg)
        {
            if (arg == null)
            {
                throw new ArgumentsForDefiningBasicMeasureUnitCannotBeNull();
            }

            GaurdAgainstMultipleBasicUnitDefinition();

            this._measureUnits.Add(BasicMeasureUnit.Create(arg.Id, arg.Title, arg.TitleSlug));
        }
Ejemplo n.º 3
0
 public MeasureDimensionTestBuilder WithBasicMeasureUnitArg(BasicMeasureUnitArg arg)
 {
     this._basicMeasureUnitArg = arg;
     return(this);
 }