Esempio n. 1
0
        public void Test_GetBenefitsCostForEmployeeOnlyWithDiscount()
        {
            EmployeeData employeeData = new EmployeeData("Aaron", "Smith");

            BenefitsService benefitsService = new BenefitsService();
            var             result          = benefitsService.GetTotalBenefitsCostsForEmployee(employeeData);

            Assert.That(result, Is.EqualTo(900.00m));

            return;
        }
Esempio n. 2
0
        public void Test_GetBenefitsCostForEmployeeOnly()
        {
            EmployeeData employeeData = new EmployeeData("John", "Doe");

            BenefitsService benefitsService = new BenefitsService();
            var             result          = benefitsService.GetTotalBenefitsCostsForEmployee(employeeData);

            Assert.That(result, Is.EqualTo(1000.00m));

            return;
        }
Esempio n. 3
0
        public void Test_GetBenefitsCostForEmployeeWithOneDependentBothDiscounts()
        {
            EmployeeData employeeData = new EmployeeData("Anna", "Waters")
            {
                Dependents = new List <Person>
                {
                    new Person("Andy", "Kirk")
                }
            };

            BenefitsService benefitsService = new BenefitsService();
            var             result          = benefitsService.GetTotalBenefitsCostsForEmployee(employeeData);

            Assert.That(result, Is.EqualTo(1350.00m));

            return;
        }
Esempio n. 4
0
        public void Test_GetBenefitsCostForEmployeeWithOneDependentNoDiscount()
        {
            EmployeeData employeeData = new EmployeeData("Sarah", "Lee")
            {
                Dependents = new List <Person>
                {
                    new Person("Bill", "Jones")
                }
            };

            BenefitsService benefitsService = new BenefitsService();
            var             result          = benefitsService.GetTotalBenefitsCostsForEmployee(employeeData);

            Assert.That(result, Is.EqualTo(1500.00m));

            return;
        }
Esempio n. 5
0
        public void Test_GetBenefitsCostForEmployeeWithFiveDependentsNoDiscounts()
        {
            EmployeeData employeeData = new EmployeeData("George", "Wright")
            {
                Dependents = new List <Person>
                {
                    new Person("Bob", "Wright"),
                    new Person("Billy", "Wright"),
                    new Person("Susan", "Wright"),
                    new Person("Mary", "Wright"),
                    new Person("Frank", "Wright")
                }
            };

            BenefitsService benefitsService = new BenefitsService();
            var             result          = benefitsService.GetTotalBenefitsCostsForEmployee(employeeData);

            Assert.That(result, Is.EqualTo(3500.00m));

            return;
        }