Skip to content

Instantly share code, notes, and snippets.

Last active August 27, 2019 18:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
public void RegisterServices()
// while running the service locally, mock external call
// so it always succeeds (as long as it
// itself is not the subject of the test)
var isDevelopmentEnvironment = DetermineCurrentEnvironment();
if (isDevelopmentEnvironment)
else // otherwise use the actual live web service adapter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment