i building a small windows service (not a web service) that periodically check for some data and based on that and call a class library to do some work
BTW: this is the first time i try to create a windows service
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Windows services are by definition hard to test because you must always install them and uninstall them every time when you change something.
It is best to decouple BL that you writing for service and put it in a separate class. After that you can write simple win desktop application where you will use and test this BL class. After you finished testing it is easy to include same logic to a Windows Service project.
For debugging Windows Service you have to Attach to process and after that it is very easy to test code directly.
Hope that this will help…