.net 6 is amazing thing.
It allows you to take startup and spool it as a testrunner.
You even can take startup and replace specific parts of it to your desired.
For example you can replace dbcontextoptions with inmemory one that will runn all your tests in separate inmemry databases.
Except in oprimizely you can't - because it throws exception on starting host.
Is there any known way to force inmemory database?
Before someone will ask why use inmemory: