Web API Unit Test NLog assembly error
<p>I'm trying to add unit tests to an existing Web API 2 application.</p>

<p>In my test project i've added a reference to the .dll of my Web API from it's obj/release folder. The Web API uses NLog.</p>

<p>I initiate my controller i want to test</p>

<pre><code>var controller = new OrderController();
</code></pre>

<p>Then I get the following exception when I run the test.</p>

<blockquote>
  <p>System.IO.FileNotFoundException: Could not load file or assembly
  'NLog, Version=4.0.0.0, Culture=neutral,
  PublicKeyToken=5120e14c03d0593c' or one of its dependencies. The
  system cannot find the file specified</p>
</blockquote>

<p>I don't know what I have to do with NLog as it's working fine in my Web API..</p>

<p>Any suggestions?</p>