ivaylokenov / MyTested.AspNetCore.Mvc

Fluent testing library for ASP.NET Core MVC.
https://docs.mytestedasp.net/
Other
1.72k stars 176 forks source link

How to set environment variables in test? #415

Closed TechyGuy99 closed 9 months ago

TechyGuy99 commented 9 months ago

My startup class uses an envrionment variable. How do i set it in this framework? I debug, and it comes up null.

TechyGuy99 commented 9 months ago

Ok, i did Envrionment.SetEnvironmentVariable() in my TestStartup Constructor