// Use whatever the appropriate "assembly initialize" logic your // unit test framework uses. static RegisterDefaultExample() { AnonymousData.RegisterDefault <Employee>( anon => new Employee(anon.AnyFirstName(), anon.AnySurname(), anon.AnyBool())); }