public void ShouldCreateTimeCard1() { var timeCards = new TimeCards(buildYearWorks(2020, 10)); var period = new Period(2020, 1); var overtimeHours = timeCards.OvertimeWorkHours(period); Assert.AreEqual(46, overtimeHours); }
public void ShouldReturnEmptyWhenArgumentIsNull() { var timeCards = new TimeCards(null); var period = new Period(2020, 1); var workHours = timeCards.RegularWorkHours(period); var overtimeHours = timeCards.OvertimeWorkHours(period); Assert.AreEqual(0, workHours); Assert.AreEqual(0, overtimeHours); }