示例#1
0
 /// <summary>
 /// Returns the GST portion of the <see cref="Money"/> that has been paid given a GST rate.
 /// </summary>
 /// <param name="gstRate">The GST rate.</param>
 public Money GstPaid(Gst gstRate)
 {
     return(Multiply(gstRate.GstFraction / gstRate.Multiplier));
 }
示例#2
0
 /// <summary>
 /// Adds the GST portion to the original money at the GSTRate provided.
 /// </summary>
 public Money Add(Gst gstRate)
 {
     return(Multiply(gstRate.Multiplier));
 }
示例#3
0
        /// <summary>
        /// Returns the total amount of GST that should be payed for this monetary amount based on
        /// the given GST rate.
        /// </summary>
        public Money GstToPay(Gst gstRate)
        {
            decimal value = gstRate.ToDecimal() / 100;

            return(Multiply(value));
        }