Ejemplo n.º 1
0
 public static PriceIncludingTax From(PriceExcludingTax price, SalesTaxRate rate)
 {
     return(new PriceIncludingTax(price, rate));
 }
Ejemplo n.º 2
0
 private PriceIncludingTax(PriceExcludingTax price, SalesTaxRate rate)
 {
     this.value = (int)(price.Value * (1M + rate.Value));
 }