Hi,
I'm trying to use the RavenTestDriver in xunit tests to test the output of my APIs, but can't find a way to insert data into the database the API will use when querying.
in the constructor I inject a WebApplicationFactory, pass a config with the url and name of the database
and start the app with WithWebHostBuilde saving a reference to the HttpClient it created
in the test body I open a session and save the documents I expect the API to return
then I call the api
the name of the database is different in the constructor, in the test, and in the API method. How can I get a predictable name for the database?
Thanks