In our .Net Core 3.1 project we log using Serilog
In the set-up of my test I create a ServiceCollection so I can new up my classes I use in the tests using a service