title: Setting one property based on another in AutoFixture
body: <p>I am trying to create a fixture using AutoFixture where one property of the object is related to another, and one of the properties is created as part of the fixture.</p>
  
  <p>What I have so far is:</p>
  
  <pre><code>fixture = new Fixture().Customize(new MultipleCustomization());
  Object object;
  double constant;
  object = fixture.Build&lt;Object&gt;()
                  .With(o =&gt; o.PropertyOne, fixture.Create&lt;double&gt;)
                  .With(o =&gt; o.PropertyTwo, constant * o.PropertyOne)
                  .Create());
  </code></pre>
  
  <p>Which doesn't work because "The name 'o' does not exist in the current context", which makes sense.</p>
  
  <p>Is there any way to do this as part of the creation of the fixture?</p>
  
  <p>My situation is a little more complicated because I am actually generating a list, so the code would look like:</p>
  
  <pre><code>fixture = new Fixture().Customize(new MultipleCustomization());
  List&lt;Object&gt; objectListFixture;
  double constant;
  objectListFixture.AddRange(
      fixture.Build&lt;Object&gt;()
             .With(o =&gt; o.PropertyOne, fixture.Create&lt;double&gt;)
             .With(o =&gt; o.PropertyTwo, constant * o.PropertyOne)
             .CreateMany());
  </code></pre>
  
  <p>And I would really like to avoid a for loop if possible.</p>