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");
        }