InstaTax.Core.DomainObjects.TaxSlabs.ValidateTaxComponents C# (CSharp) 메소드

ValidateTaxComponents() 개인적인 메소드

private ValidateTaxComponents ( double taxableIncome, User taxPayer ) : void
taxableIncome double
taxPayer User
리턴 void
        private void ValidateTaxComponents(double taxableIncome, User taxPayer)
        {
            if (taxPayer == null)
                throw new ArgumentException("Tax payer details not available");

            if (taxableIncome <= 0)
                throw new ArgumentException("Invalid taxable income");
        }