Mocking an ASP.NET MVC controller using NSubstitute
Nov 23,
2015
I’ve found that the concept of mocking confuses some developers. It’s probably due to the fact that they usually experience the idea formally, at first—in the context of a mocking framework. Some of these frameworks are very powerful—and fairly complex. However, The basic idea is quite simple. Take the following controller public class NotificationController : […]