C
Join ServerC#
help
❔ OneTimeSetUp System.ArgumentException Keyword not supported 'host'.
DDuke11/28/2022
Hi, I'm trying to set up an integration testing project with NUnit, but when I try running a test, it pops up with the following error. Here is all of my code:
https://gist.github.com/dukesteen/e21a79071222f989e5b880d3eb256809
Sources online said it might have something to do with the connection string containing
https://gist.github.com/dukesteen/e21a79071222f989e5b880d3eb256809
Sources online said it might have something to do with the connection string containing
Host
which I swapped out for Server
as the suggested fix, but it didn't fix the exception. Has anyone else had this same experience?DDuke11/28/2022
https://gist.github.com/dukesteen/e21a79071222f989e5b880d3eb256809#file-testing-cs-L21 I think the exception is in this function
DDuke11/28/2022

DDuke11/28/2022
Seems like it's still picking up the appsettings from my api project

DDuke11/28/2022
Seems like I had to pass a connection to respawn instead of a connection string, because I am using postgres and not mssql
AAccord11/29/2022
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.