title: Moq with Unity Container unit testing
body: <p>below is an example of production code that I am trying to unit test. I am struggling to resolve a dependency to a concrete class that is being used.</p>
  
  <pre><code>public MyClass(IUnityContainer container)
  {
      this.unityContainer = container;
  }
  
  public string DoWork()
  {
       var sender = unityContainer.Resolve&lt;IInterface&gt;();  // how to setup this object
       var json = sender.Send("something");
       var value = serializer.Deserialize&lt;SomeModel&gt;(json);
       return value.url;
  }
  </code></pre>
  
  <p>I want to mock out the IInterface used by this method. How do I set that up in my unit test code? I feel like there is something missing here. this has a smell of an anti-pattern.....</p>