title: Auto create Object Mother class in C#
body: <p>I'm using an <a href="http://martinfowler.com/bliki/ObjectMother.html" rel="nofollow">Object Mother</a> for unit testing and I don't want to write all OM classes == duplicate class structure.
  Is it possible to create some base OM class which will generate OM class automatically?</p>
  
  <pre><code>class MyNewObjectMother: ObjectMother&lt;SomeClass&gt;{}
  </code></pre>
  
  <p>This should create all properties as public and method CreateInstance which create class object and inject all properties.
  Is it possible? What is the best practice? Or may be some auto T4 code generation, etc.
  thanks.</p>