Beispiel #1
0
        private EmployerPaymentCostCalculationResult CalculateEmployerPart(decimal salaryGross, float copyrightLawsPercent)
        {
            var employerPaymentCostCalculationContext = new EmployerPaymentCostCalculationContext
            {
                Parameters = new EmployerPaymentCostParameters
                {
                    EmployerPaymentCostSetting = EmployerExampleValues.PaymentCostSetting
                }
            };

            return(_employerPaymentCostCalculator.Calculate(salaryGross,
                                                            copyrightLawsPercent, employerPaymentCostCalculationContext));
        }
        public void PermanentContract__SalaryGross_eq__EmployerPaymentCost_eq(
            decimal salaryGross,
            decimal expectedValue)
        {
            // arrange
            var context = new EmployerPaymentCostCalculationContext
            {
                Parameters = new EmployerPaymentCostParameters
                {
                    EmployerPaymentCostSetting = EmployerExampleValues.PaymentCostSetting
                }
            };

            var builder    = new EmployerPaymentCostCalculationResultBuilder();
            var calculator = new EmployerPaymentCostCalculator(builder);

            // act
            var result = calculator.Calculate(salaryGross, 0, context);

            // assert
            result.TotalPaymentCost.Should().Be(expectedValue);
        }