示例#1
0
        public void CalculateDeductions_CalculatesEmployeeDeductions()
        {
            var employee = new Employee {
                FirstName = "Dwayne", LastName = "Johnson"
            };
            var deductions = _calculationService.CalculateDeductions(employee);

            Assert.AreEqual(0, deductions.Discount);
            Assert.AreEqual(38.46, deductions.Gross);
            Assert.AreEqual(38.46, deductions.Net);
        }