Martin Normark's Blog
  • Home
  • About
  • Contact
Sign in Subscribe

Unit testing

A collection of 2 posts
ActionFilters

Unit Testing ASP.NET MVC Controller Action contains specific ActionFilter Attributes

ActionFilters [http://msdn.microsoft.com/en-us/library/dd410209.aspx]in ASP.NET MVC are great. You can now easily share logic between controllers without having to inherit from a base controller, that does the common work. I have a content heavy application that supports a set of layouts. Each layout
May 15, 2012 1 min read
C#

Unit test for verifying references from DataAnnotation validation to the ErrorMessageResourceName value

I love the new model validation features in System.ComponentModel.DataAnnotations. One thing I don’t like though, is that the ErrorMessageResourceName is loosely typed. The ErrorMessageResourceType, however, is a System.Type which will be strongly typed by assigning its value using the typeof(Namespace.ResourceSetType) method. Since there’s
Mar 4, 2010 1 min read
Page 1 of 1
Martin Normark's Blog © 2023
Powered by Ghost