public ExchangeRate(string value) { Value = FieldTypes.AssertDecimal(value); if (Value <= 0) { throw new ArgumentException($"{nameof(ExchangeRate)} rate must be positive. Was {value}"); } }
public Points(string value) { Value = FieldTypes.AssertDecimal(value); if (Value < 0) { throw new ArgumentException($"{nameof(Points)} must be positive. Was {value}"); } }