InstaTax.Tests.ChapterSixDeductionTest.ShouldSaveTheInvestmentAlongWithTaxStatement C# (CSharp) Метод

ShouldSaveTheInvestmentAlongWithTaxStatement() приватный Метод

private ShouldSaveTheInvestmentAlongWithTaxStatement ( ) : void
Результат void
        public void ShouldSaveTheInvestmentAlongWithTaxStatement()
        {
            var taxPayer = new User(0, true, Gender.Female);
            TaxSlabs ts = TaxSlabs.GetInstance();
            AnnualSalary asal = new AnnualSalary
            {
                Basic = 600000,
                Hra = 100000
            };
            TaxStatement stmt = new TaxStatement(asal, taxPayer);
            stmt.Chapter6Investments=  new Chapter6Investments();
            LifeInsurance LICInvestment=new LifeInsurance(10000);
            stmt.Chapter6Investments.Add(LICInvestment);
            LICInvestment.TaxStatement = stmt;

            Repository taxStatementRepo=new Repository();
            taxStatementRepo.Save(stmt);

            Assert.AreEqual(LICInvestment.GetAmount(), taxStatementRepo.GetInvestmentDetails(stmt.Id).GetAmount());
        }