config from test it's not used
I am running intergration test. I've implemented it by using
WebApplicationFactory
here it's how I am getting client
in Program.cs
when I will check what's inside configuration builder. I can see that appsettings.test.json
it's one of it's sources.
Yet, it is using appsettings.json
from application and not from test. Here is code How I retrieve settings
file it's copied and it's in debug folder. Environment it's set to test.
I realize, webapplication factory has "double" instructions (setting environment, or adding json file to builder which is not needed). It's just current state of code after many attempts of fixing it0 Replies