public void SetUp()
        {
            _time = Substitute.For <ITime>();
            _time.UtcNow().Returns(DateTime.UtcNow);

            _employeeService = new EmployeeService(
                _time,
                _employeeRepository,
                _zoneRepository,
                _payrollRepository,
                _liquidationDocumentRepository);
        }
Example #2
0
 private DateTime GetLastDayOfWeek()
 {
     return(_time.UtcNow().LastDayOfWeek().EndOfDay());
 }