public void MustCalculateNetPayableTaxWithAnnualSalaryAndOtherIncomes()
{
var taxPayer = new User(50000, true, Gender.Female);
TaxSlabs ts = TaxSlabs.GetInstance();
AnnualSalary asal = new AnnualSalary
{
Basic = 200000.50,
Hra = 1000,
ProfessionalTax = 100,
SpecialAllowance = 10
};
TaxStatement stmt = new TaxStatement(asal,taxPayer);
OtherIncomes otherIncomes = new OtherIncomes();
otherIncomes.Add(new OtherIncomeItem("Income from Interest", 4000.0));
otherIncomes.Add(new OtherIncomeItem("Income from House Rent", 8000.0));
stmt.OtherIncomes = otherIncomes;
double totalIncome = asal.GetTaxableSalary() + otherIncomes.CalculateTotalAmount();
Assert.AreEqual(3091,
stmt.CalculateNetPayableTax(),2);
}