Unit Testing the HttpContext in Controllers

added by DotNetKicks
5/14/2020 4:39:09 PM

286 Views

When it comes to unit testing, it is common to use mocking to replace "external" services, that is, those that are not part of the subject under test. Not everything can be mocked, and, sometimes, when we instantiate non-POCO classes, such as controllers ( ControllerBase), there are lots of things that are not instantiated by the framework and are left for us do to.


0 comments