Esempio n. 1
0
 public Amount CalculateFrom(Rate percentage)
 {
     return(new Amount(this.Value * percentage.Percentage / 100));
 }
Esempio n. 2
0
 public Price CalculateFrom(Rate percentage)
 => new Price(Amount.CalculateFrom(percentage), Currency);