Skip to content

Ingeniarius

Personal summaries and opinions on software topics

  • Home

Tag: MVC

Mocking HttpContext when testing IActionFilters in MVC

While trying to figure out how to make a full featured implementation of ContextMock builder based solely on Moq in order to make unit tests for an implementation of IActionFilter I stumbled upon a problem : System.NotSupportedException Invalid setup on a non-virtual (overridable in VB) member: x => x.Values

Published 2016-03-22
Categorized as ASP.NET MVC, Test Driven Development Tagged MVC

Categories

  • Architecture
  • ASP.NET MVC
  • Azure
  • Code quality
  • Entity Framework
  • Good practices
  • Learning
  • Logging
  • Observability
  • Powershell
  • Requirements
  • Test Driven Development
  • Troubleshooting
  • UI
  • Uncategorized
Ingeniarius
Proudly powered by WordPress.