Create a new TestClient.
If set, the client tries to request mocking data from the API with the given authentication. Therefore the client looks up if it has a file locally with the given params+method=mockAs key. If yes, it simplz returns it. Otherwise it will contact the API and save it into a file.
The authentication to use for mocking
The url to use (optional, if not set staging is used)
Generated using TypeDoc
The TestClient allows o simply mock an API request. You can set autoMock to save mocks from the API to the folder ./src/test/mocks
client = new TestClient(); client.autoMock(new BasicAuth('username', 'password', 'tenant')); service = new ApplicationService(client);