I'm looking for an utility class to generate fake entity instances at runtime. I'm implementing a ASP.NET MVC3 website using EF4 with a code-first approach, so I'd like to run the site before creating any database. The fake instances should contain valid data (hopefully reflecting the various DataAnnotation attributes used in each class definition).
Are you looking for a Framework like FakeItEasy?
Description taken from the website:
A .Net dynamic fake framework for creating
all types of fake objects, mocks, stubs etc.
* Easier semantics, all fake objects are
just that - fakes - the use of the fakes
determines whether they're mocks or stubs.
* Context aware fluent interface guides the developer.
* Full VB.Net support.
Designed for ease of use and for compatibility with both C# and VB.Net.