title: StructureMap: How to register the same instance for all its interfaces
body: <p>StructureMap newbie question.</p>
  
  <pre><code>public class SomeClass: IInterface1, IInterface2 {
  }
  </code></pre>
  
  <p>I would like the following test to pass:</p>
  
  <pre><code>Assert.AreSameInstance(
      container.GetInstance&lt;IInterface1&gt;(), 
      container.GetInstance&lt;IInterface2&gt;());
  </code></pre>
  
  <p>How would I do an explicit registration of this?</p>
  
  <p>I know in Castle Windsor I would do something like</p>
  
  <pre><code>kernel.Register(Component.For(typeof(IInterface1), typeof(IInterface2))
      .ImplementedBy(typeof(SomeClass));
  </code></pre>
  
  <p>But I don't see any equivalent API</p>