title: Testing Custom Bootstrappers in Nancy
body: <p>So I have a <code>CustomBootstrapper</code>, which does a lot of application initialization, including IoC registration and Quartz scheduler setup. The modules also heavily rely on the <code>SuperSimpleViewEngine</code>.</p>
  
  <p>Now I need to test this, using MSTest of course, and as everyone has probably figured out by now this is not going to work. The Nancy guys figured this out early, and have provided this workaround : <a href="https://github.com/NancyFx/Nancy/wiki/Nancy-Testing-View-Location" rel="nofollow">https://github.com/NancyFx/Nancy/wiki/Nancy-Testing-View-Location</a> which I assume works, because when I in my test case try to create an instance of my bootstrapper it fails miserably, because there are more than one RootPathProviders.</p>
  
  <p>So the solution, it would seem is to use a ConfigurableBootStrapper. So I guess the only question is, how do I make sure that the ConfigurableBootStrapper is setup the same way as my <code>CustomBootStraper</code>?</p>