public void SetUp() { _time = Substitute.For <ITime>(); _time.UtcNow().Returns(DateTime.UtcNow); _employeeService = new EmployeeService( _time, _employeeRepository, _zoneRepository, _payrollRepository, _liquidationDocumentRepository); }
private DateTime GetLastDayOfWeek() { return(_time.UtcNow().LastDayOfWeek().EndOfDay()); }