❔ WebApplicationFactory and integration tests
I've run into an issue with my integration tests and I'm looking for some insight. I'm using
Now, I have a separate setup in my
My
WebApplicationFactory and trying to set up a configuration inside it. Here's what it looks like:Now, I have a separate setup in my
Program.cs file, where I am adding some services including DbContexts. Here's how it looks:My
AddDbContexts method is actually adding contexts using UseNpgsql and it takes the connection string from my configuration.