I've run into a problem that I’m hoping someone has experienced before, and has a solution to...
I’m creating unit tests which test functionality of components in an assembly.
The method I’m testing makes use of the Telligent.Evolution.Users.GetUser() which gives the error “System.InvalidOperationException: The service locator has not been initialized”.
I believe that the services have not been initialized as it is being executed from a test app as opposed to the Telligent website.
This appears to be related to the fact that the services are somehow initialized in the CommunityServer.Global Application_Start handler as called from Global.asax.
Is there a way to get the Telligent assemblies to run out of the web context? What is the recommendation for working with Telligent and unit tests?