Ejemplo n.º 1
0
        public void BenefitCalculator_Benefits_EmployeeOnly_NonA()
        {
            IBenefitCalculator calc = new BenefitCalculator(_benefitRepository);

            BenefitResults cost = calc.CalculateBenefits("qweru qrrrrrr werer", new List<string>());

            Assert.AreEqual(cost.BenefitYear, _baseCost);
            Assert.AreEqual(cost.BenefitCheck, decimal.Round(_baseCost / 26, 2));
        }
Ejemplo n.º 2
0
        public void BenefitCalculator_Benefits_EmployeeOnly_AName()
        {
            IBenefitCalculator calc = new BenefitCalculator(_benefitRepository);

            BenefitResults cost = calc.CalculateBenefits("xweru Adfd", new List<string>());

            Assert.AreEqual(cost.BenefitYear, 900M);
            Assert.AreEqual(cost.BenefitCheck, decimal.Round(900M / 26, 2));
        }
Ejemplo n.º 3
0
        public void BenefitCalculator_Benefits_EmployeeOnly_NonA_1_Dependent_NonA()
        {
            IBenefitCalculator calc = new BenefitCalculator(_benefitRepository);

            BenefitResults cost = calc.CalculateBenefits("qweru dssss", new List<string> { "dffdvvv ssssf" });

            var test = _baseCost + 500M;

            Assert.AreEqual(cost.BenefitYear, test);
            Assert.AreEqual(cost.BenefitCheck, decimal.Round(test / 26, 2));
        }
Ejemplo n.º 4
0
        public void BenefitCalculator_Benefits_EmployeeOnly_AName_1_Dependent_AName()
        {
            IBenefitCalculator calc = new BenefitCalculator(_benefitRepository);

            BenefitResults cost = calc.CalculateBenefits("Aweru", new List<string> { "Afdd" });

            var test = 1260M;

            Assert.AreEqual(cost.BenefitYear, test);
            Assert.AreEqual(cost.BenefitCheck, decimal.Round(test / 26, 2));
        }