Ejemplo n.º 1
0
        public void ComputeForContractualStaff_ShouldCalculate(double daysWorked, decimal expected)
        {
            // Arrange
            var employeeType = new EmployeeType
            {
                Amount = 500.00m,
                HasTax = false
            };

            var sc = new SalaryCalculator(null);

            // Act
            decimal salary = sc.ComputeForContractualStaff(employeeType, daysWorked, "May").Data.Salary;



            // Assert
            Assert.Equal(expected, salary);
        }