Stop trying to mock the ILogger methods

added by DotNetKicks
8/6/2019 12:53:28 PM

324 Views

I've seen multiple people struggling with trying to mock the ILogger calls. This post will hopefully save some people from wandering this path. Here it goes: Here is why: Most ILogger methods that we use for logging are extension methods - static methods.


0 comments