0
collexe created
Deat support team,
I am writing a new unit test code on the platform, however, hitting the below issue saying Service 'Microsoft.AspNetCore.Hosting.IWebHostEnvironment' which was not registered,
Kindly advise further and appreciate for the prompt response, thank you.
Regards Alvin T
1 Answer(s)
-
0
hi
You can do Mock IWebHostEnvironment in unit tests
see https://github.com/aspnetboilerplate/aspnetboilerplate/issues/4186