Testing handlers/filters that access IDependencyScope in Web API
A guide to testing ASP.NET Web API filters and handlers that use IDependencyScope, with a focus on dependency injection and unit testing patterns.
A guide to testing ASP.NET Web API filters and handlers that use IDependencyScope, with a focus on dependency injection and unit testing patterns.
A guide to automatically injecting dynamic page metadata (title, description, keywords) in ASP.NET MVC using a custom action filter.
Introduces a custom ASP.NET MVC Action Filter that automatically checks for null view models and returns a 404, eliminating repetitive null-check code.
Explains how to implement automatic ModelState validation in ASP.NET MVC using a custom ActionFilter to avoid repetitive code.
Explains how to implement content negotiation in ASP.NET MVC to return JSON, XML, or HTML based on client accept headers.
A guide to refactoring ASP.NET MVC controllers by replacing repetitive conditional logic with custom action filters and view results for cleaner code.
A tutorial on implementing application-wide action filters in ASP.NET MVC to ensure consistent logging and behavior across all controllers.
A tutorial on implementing partial page updates in ASP.NET MVC using jQuery and a custom action filter to switch master pages for Ajax requests.