integration testing is the recommended approach. something like this if it's a web api project.
however I think doing db.initasync with mongo2go address in the setup/class fixture should do the trick.
let me know if it doesn't and I'll have a deeper look.
Thanks for the quick response! I was able to connect to Mongo2Go with your library but came across an issue which I've described in your repo issues.
I think I may need to use Xunit's class fixture and persist the connection throughout the test cases in a test class.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
integration testing is the recommended approach. something like this if it's a web api project.
however I think doing db.initasync with mongo2go address in the setup/class fixture should do the trick.
let me know if it doesn't and I'll have a deeper look.
Thanks for the quick response! I was able to connect to Mongo2Go with your library but came across an issue which I've described in your repo issues.
I think I may need to use Xunit's class fixture and persist the connection throughout the test cases in a test class.