InstaTax.Core.DomainObjects.HalfExemptDonation.GetDeduction C# (CSharp) 메소드

GetDeduction() 공개 메소드

public GetDeduction ( ) : double
리턴 double
        public override double GetDeduction()
        {
            return this.Amount * 0.5;
        }

Usage Example

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