public void ShouldCalculateOnlyRegularJanuar2020Salary() { var employeeId = new EmployeeId("emp-01"); var salary = new Salary(100, Currency.Dollar); var employee = new HourlyEmployee(employeeId, salary, buildYearWorks(2020, 8)); var januar2020Salary = employee.CalculateSalary(new Period(2020, 1)); Assert.AreEqual(18400, januar2020Salary.Salary.Value); Assert.AreEqual(Currency.Dollar, januar2020Salary.Salary.Currency); Assert.AreEqual(new DateTime(2020, 1, 1), januar2020Salary.Begin); Assert.AreEqual(new DateTime(2020, 1, 31), januar2020Salary.End); }