title: AutoFixture, create a list of email addresses
body: <p>I'm writing some unit tests and have a class called <code>Account</code> which has</p>
  
  <pre><code>public Guid AccountId {get;set;}
  public IEnumerable&lt;string&gt; EmailAddresses {get;set;}
  etc...
  </code></pre>
  
  <p>I want to use autofixture to create the account, but I'm having trouble getting the email format. </p>
  
  <p>I have tried </p>
  
  <pre><code>fixture.Register&lt;string&gt;(() =&gt; string.Format("{0}@acme.com", fixture.Create&lt;string&gt;()));
  </code></pre>
  
  <p>but that that leads to circular problem. </p>
  
  <p>I could do this </p>
  
  <pre><code>fixture.Register&lt;string&gt;(() =&gt; string.Format("{0}@acme.com", fixture.Create&lt;int&gt;()));
  </code></pre>
  
  <p>But I'd rather have a string at the start of the address. </p>
  
  <p><strong>EDIT</strong>
  Thanks to both answers I have a written up a summary and few other scenarios  as a post here - <a href="http://nodogmablog.bryanhogan.net/2016/04/customizing-a-specific-string-inside-a-class-using-autofixture/" rel="noreferrer">http://nodogmablog.bryanhogan.net/2016/04/customizing-a-specific-string-inside-a-class-using-autofixture/</a></p>