public void External_Container_Should_Resolve_IEnumerable() { // Given var container = new UnityContainer(); var unityBootstrapper = new FakeUnityNancyBootstrapper(container); unityBootstrapper.Initialise(); // When var statusCodeHandlers = unityBootstrapper.Container.Resolve <IEnumerable <IStatusCodeHandler> >(); // Then statusCodeHandlers.ShouldNotBeNull(); statusCodeHandlers.Count().ShouldBeGreaterThan(0); }
public UnityNancyBootstrapperFixture() { _Bootstrapper = new FakeUnityNancyBootstrapper(); _Bootstrapper.Initialise(); }