public void GetRemainingWorkingTimeWithHolidayShouldOnlyEnumerateWorkingTime(DateTime startTime, TimeSpan workingHours, DateTime expectedDueDate, string expectation) { // Arrange var service = new ServicePlannerManager(Common.MockWorkDays(), Common.MockHolidayPeriods()); // Act var result = service.GetRemainingWorkingTime(startTime, expectedDueDate); // Assert - Assert.AreEqual(workingHours.TotalHours, result.TotalHours, expectation); }
public void GetDueDateShouldOnlyEnumerateWorkingTime( DateTime startTime, TimeSpan workingHours, DateTime expectedDueDate, string expectation) { // Arrange var service = new ServicePlannerManager(Common.MockWorkDays(), new List<HolidayPeriod>()); // Act var result = service.GetDueDate(startTime, workingHours); // Assert - Assert.AreEqual(expectedDueDate, result, expectation); }