コード例 #1
0
        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));
        }
コード例 #2
0
 public CoefficientMeasureUnit Build()
 {
     return(CoefficientMeasureUnit.Create(_symbol, _title,
                                          _titleSlug, _ratioFromBasicMeasureUnit));
 }