Esempio n. 1
0
        public void GivenAnEmployee_WhenCalculateAnnualSalary_ThenGetsAnnualSalary()
        {
            //given
            Employee employee = new HourlySalaryEmployee
            {
                HourlySalary = 10
            };

            //when
            var result = _salaryService.CalculateAnnualSalary(employee);

            //Then
            Assert.AreEqual(14400, result);
        }