I am hop开发者_如何学JAVAing there is a better way to do this. Do I really have to wrap each method of my wcf service into an interface in order to use it?
I don't think my fellow developers are going to buy into this because of the amount of time it takes... there must be a better way!
Wrapping each method of a service into an interface isn't only testable design, but in general a good design. If you want to replace your wcf services with say rest service, consumers of the service don't have to do anything as they are using the interface. Using, an interface will allow you to do mocking and all that, which is good. But, here the most important thing is correct design.
精彩评论