I’m working on a ASP.NET Core 8 project with controllers that render .cshtml
into a string to send it via e-mail to external persons.
Problem is now within a unit test to run the render method because I need to have several interfaces to be used for and I don’t know how to instantiate them in the correct way:
Maybe someone has a useful hint for me to create a working Razor Renderer Engine to process .cshtml
files out of unit tests.
Best regards!
1