Skip to content

indy5858/mock-the-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mock-the-clock

Kata for mocking a time dependency

There is a door / an elevator / ... with restricted access. A server has to decide depending on the role of the person demanding access and the time of day and day of week, whether access is granted or not.

Cleaning personnel is allowed to enter on weekdays between 7:00 am and 9:00 am and 5:00 pm and 7:00pm.

Employees are allowed to enter between 9:00am and 17:00pm.

Security personnel is allowed to enter every day between 18:00pm an 8:00am.

Security guidelines require that access is granted only for a limited period which may not exceed 2 years.

Students are employees, but have a temporary contract and therefore can only enter in a six months period starting from their first day in the company.

About

Kata for mocking a time dependency

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published