Is there a way to add a Program.cs to a Unit Test project (.Net 6.0)?
My goal would be to set a ServiceProvider that runs when the tests execution starts (where I would set my DI / connection strings...).
I know that I can set it via a static class, but this has some donwbsides for me. ServicesProvider / Dependency Injection in C# Unit test classes
I need to make sure that the ServiceProvider is built immediately, whatever tests sequence I run. Well, I could obviously set a method that initializes it and call it in all the Initialize methods of my test classes but that looks awkward to me.