public void DefineCoefficientUnit(CoefficientMeasureUnitArg arg) { if (arg == null) { throw new ArgumentsForDefiningCoefficientMeasureUnitCannotBeNull(); } GaurdAgainstBasicUnitShouldBeDefinedBefore(); this._measureUnits.Add(CoefficientMeasureUnit.Create(arg.Id, arg.Title, arg.TitleSlug, arg.RatioFromBasicMeasureUnit)); }
public CoefficientMeasureUnit Build() { return(CoefficientMeasureUnit.Create(_symbol, _title, _titleSlug, _ratioFromBasicMeasureUnit)); }