I'm just getting started on a new MVC project, and like a good boy I am trying to defer going to the DB for as long as possible. Here's the scoop:
- I'm planning on using the ComponentModel.DataAnnotations decorations.
- I'm also planning on using LinqToSql
Is is possible to write a unit test against the DataAnnotations metadata classes? I don't want to put a schema such until as late as possible but I'd still like to write tests to validate the model.
Any ideas on a good approach? Maybe something completely different?