Ejemplo n.º 1
0
        public void SocialTaxShouldReturnCorrectIfEqualToSocialLimit()
        {
            var taxCalculatorService = new TaxesCalculatorService();
            var salaryToTest         = 3000m;
            var socialTax            = 300m;

            var result = taxCalculatorService.SocialTax(salaryToTest);

            result
            .Should()
            .Be(socialTax);
        }
Ejemplo n.º 2
0
        public void SocialTaxShouldReturnCorrectIfBelowSocialLimit()
        {
            var taxCalculatorService = new TaxesCalculatorService();
            var salaryToTest         = 1100m;
            var socialTax            = (salaryToTest - SalaryConstants.NO_TAX_LIMIT) * SalaryConstants.Social_TAX;

            var result = taxCalculatorService.SocialTax(salaryToTest);

            result
            .Should()
            .Be(socialTax);
        }