I'm writing some tests(not unit tests, so I don't have access to the controllers) and one of the api calls keeps failing because HttpContext.User.Identity.Name is null. How can I set this property inside one of my tests? Btw , this is .Net Core 3.1.
Aucun commentaire:
Enregistrer un commentaire