We have a whole bunch of DLLs that give us access to our database and other applications and services.
We’ve wrapped these DLLs with a thin WCF service layer which our clients then consume.
I’m a little unsure on how to write unit tests that only test the WCF service layer. Should I just write unit tests for the DLLs, and integration tests for the WCF services? I’d appreciate any wisdom… I know that if my unit tests actually go to the database they won’t actually be true unit tests. I also understand that I don’t really need to test the WCF service host in a unit test.
So, I’m confused about exactly what to test and how.
The consumer of your service doesn’t care what’s underneath your service. To really test your service layer, I think your layer needs to go down to DLLs and the database and write at least CRUD test.