I have an application in VB/C# .NET which needs to interact with a third party API, but I would like to interface it out so I can use a mock API for testing purposes. Here are example API calls I would use in code:
RelayClient.AuthenticateUser(username, password, request, sessionID)
RelayClient.GetUserInfo(sessionID)
A few problems I am facing:
- RelayClient is NonInheritable/Static.
- RelayClient doesn't implement any interfaces.
- The API client library is closed source.
Is there any standard way of dealing with this situation?