public void Should_be_able_to_get_engine_when_providing_application_container_exteranlly() { // Given var bootstrapperWithExternalContainer = new FakeWindsorNancyBootstrapper(new WindsorContainer()); bootstrapperWithExternalContainer.Initialise(); // When var result = bootstrapperWithExternalContainer.GetEngine(); // Then result.ShouldNotBeNull(); result.ShouldBeOfType<INancyEngine>(); }
public void Should_be_able_to_get_engine_when_providing_application_container_exteranlly() { // Given var bootstrapperWithExternalContainer = new FakeWindsorNancyBootstrapper(new WindsorContainer()); bootstrapperWithExternalContainer.Initialise(); // When var result = bootstrapperWithExternalContainer.GetEngine(); // Then result.ShouldNotBeNull(); result.ShouldBeOfType <INancyEngine>(); }
public WindsorNancyBootstrapperFixture() { this.bootstrapper = new FakeWindsorNancyBootstrapper(); this.bootstrapper.Initialise(); }
public WindsorNancyBootstrapperFixture() { this.bootstrapper = new FakeWindsorNancyBootstrapper(); this.bootstrapper.Initialise(); }