We can execute a test server for integration testing. Something like:
- this question or the MS docs
Fine.
However, I can't pass environment variables to the test server.
I can set the environment with UseEnvironment("Development") but not add variables.
It should be possible, but I don't know how to do it.
Anyone Knows how this can be done?
The environment variables would carry dev logins for a 3rd party API our code base needs. For unit tests we mock this 3rd party API. A solution for my specific problem can be to mock this for integration tests as well, thus removing the need for environment variables, but even so the question remains.