stanac / shutdown

Timed shut down of your Windows PC
http://stanac.github.io/shutdown/
MIT License
13 stars 5 forks source link

Add ability to put the machine to sleep after an interval of time. #4

Closed theogjpeezy closed 7 years ago

theogjpeezy commented 7 years ago

I broke the shutdown helper into two executor classes rather than having the if block in the helper class. The change isolates the dependencies so that the helper class is just in charge of deciding what type of executor to fire. I added some tests to the project as well. I just used MS Test, but I would be open to changing to NUnit or XUnit as well.

stanac commented 7 years ago

Great, thanks, @theogjpeezy are you willing to update the web page? I'm making you a collaborator on the project.

theogjpeezy commented 7 years ago

Yeah, I can take care of that today.