I have written a RESTFul WS that eventually needs to call the SDL Web services to access the repository. We currently employ the STS to get a token. That token is stored in a cookie and is passed with subsequest requests from our custom UI to authenticate the user.
Issue we are trying to overcome is implementing unit testing on our code base. The issue is that when I eventually make a call to the SDL services I get a response because it does not have the token.
Has anyone else written code where you employ unit testing and how you overcome the issue of having to get a token?