public MeasurementStandard ToDomain()
 => new MeasurementStandard(Id,
                            Name,
                            MeasurementValueType.GetForNameCode(Pollutant),
                            Limit,
                            Percent,
                            Averaging);
 private MeasurementStandardDto(long id,
                                string name,
                                MeasurementValueType pollutant,
                                double limit,
                                double percent,
                                string averaging)
 {
     this._id        = id;
     this._name      = name;
     this._pollutant = pollutant;
     this._limit     = limit;
     this._percent   = percent;
     this._averaging = averaging;
 }
Beispiel #3
0
 public MeasurementValue ToDomain()
 => new MeasurementValue(Id, MeasurementValueType.GetForNameCode(Type), Value);
Beispiel #4
0
 private MeasurementValueDto(long id, MeasurementValueType type, double value)
 {
     this._id    = id;
     this._type  = type;
     this._value = value;
 }