InstaTax.Core.DomainObjects.HalfExemptDonation.GetDeduction C# (CSharp) Méthode

GetDeduction() public méthode

public GetDeduction ( ) : double
Résultat double
        public override double GetDeduction()
        {
            return this.Amount * 0.5;
        }

Usage Example

 public void DeductionForAHalfExemptDonationUnder80GShouldbeZeroIfDonationIsZero()
 {
     DonationUnder80G donation = new HalfExemptDonation(0);
     Assert.AreEqual(0, donation.GetDeduction(), 0.001);
 }
All Usage Examples Of InstaTax.Core.DomainObjects.HalfExemptDonation::GetDeduction