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
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
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...