This is my controller:
public class BlogController : Controller
{
private IDAO _blogDAO;
private readonly ILogger _
Already mentioned you can mock it as any other interface.
var logger = new Mock>();
So far so good.
Nice thing is that you can use Moq to verify that certain calls have been performed. For instance here I check that the log has been called with a particular Exception.
logger.Verify(m => m.Log(It.Is(l => l == LogLevel.Information), 0,
It.IsAny
When using Verify the point is to do it against the real Log method from the ILooger interface and not the extension methods.