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
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
1 Answer(s)
-
0
hi
You can do Mock IWebHostEnvironment in unit tests
see https://github.com/aspnetboilerplate/aspnetboilerplate/issues/4186
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)
