public void Ctor_ShouldReturIncomTax_Success() { SelfEmployeeCalculation selfEmployeeCalculation = new SelfEmployeeCalculation(CreataContext(baseAmount: 10000)); Assert.NotNull(selfEmployeeCalculation); Assert.AreEqual(1004m, selfEmployeeCalculation.TaxAmount); }
public void Ctor_TaxAmountShouldBeRound() { SelfEmployeeCalculation selfEmployeeCalculation = new SelfEmployeeCalculation(CreataContext(baseAmount: 10000)); Assert.NotNull(selfEmployeeCalculation); Assert.IsTrue((selfEmployeeCalculation.TaxAmount % 1) == 0); }
public void Ctor_ShouldReturnIncomeTaxZero_IfTaxBaseSumLessOrEqualZero() { SelfEmployeeCalculation selfEmployeeCalculation = new SelfEmployeeCalculation(CreataContext()); Assert.NotNull(selfEmployeeCalculation); Assert.AreEqual(0, selfEmployeeCalculation.TaxAmount); }
public void Ctor_SetInsuranceContribution_Success() { SelfEmployeeCalculation selfEmployeeCalculation = new SelfEmployeeCalculation(CreataContext()); Assert.NotNull(selfEmployeeCalculation); Assert.NotNull(selfEmployeeCalculation.InsuranceContribution); }
public void CalcualteVatAmount_Success() { SelfEmployeeCalculation selfEmployeeCalculation = new SelfEmployeeCalculation(CreataContext()); Assert.NotNull(selfEmployeeCalculation); Assert.AreEqual(230m, selfEmployeeCalculation.VatAmount); }
public void CalculateVatAmount_SetZero_IfTaxBaseAmountLessOrEqualZero() { SelfEmployeeCalculation selfEmployeeCalculation = new SelfEmployeeCalculation(CreataContext(baseAmount: 0m)); Assert.NotNull(selfEmployeeCalculation); Assert.AreEqual(0, selfEmployeeCalculation.VatAmount); }
public void Ctor_CalcuateNetPay_Success() { SelfEmployeeCalculation selfEmployeeCalculation = new SelfEmployeeCalculation(CreataContext(baseAmount: 10000)); Assert.NotNull(selfEmployeeCalculation); Assert.AreEqual(7263.84m, selfEmployeeCalculation.NetPay); }
public void Ctor_SetParameters_Success() { SelfEmployeeCalculation selfEmployeeCalculation = new SelfEmployeeCalculation(CreataContext()); Assert.NotNull(selfEmployeeCalculation.TaxBaseAmount); Assert.AreEqual(BASEAMOUNT, selfEmployeeCalculation.TaxBaseAmount); Assert.AreEqual(INCOMECOSTAMOUNT, selfEmployeeCalculation.IncomeCostsAmount); }