NancyFx/Nancy — pull request #1471 by xt0rted (2014-03-02 11:34:20+00:00)
Title: Fixing data annotations unit tests

The first commit turns the tests back on but they don't pass because the validation refactoring removed class level attribute support. The second commit tries to add this back in.

From what I know ASP.NET MVC adds class level errors to the results with an empty member name which is what I did here. This also required modifying the custom attribute in the tests to return a member name otherwise the tests still failed.

Another option is to modify the `OopsAdapter ` and override the `Validate` function like this
```c#
yield return new ModelValidationError(new[] { string.Empty }, result.ErrorMessage);
```
I think this is the better of the two options, I just don't like how the rest of the function is duplicated. I had to do this when implementing an adapter for the `CompareAttribute` so maybe this could be refactored a bit more to remove the duplication?

I still need to make the change to handle display names as per https://github.com/NancyFx/Nancy/issues/1469 but I was looking for feedback on these changes first.