Inheritance: WindsorNancyBootstrapper
        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>();
        }
Exemplo n.º 2
0
        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>();
        }
Exemplo n.º 3
0
 public WindsorNancyBootstrapperFixture()
 {
     this.bootstrapper = new FakeWindsorNancyBootstrapper();
     this.bootstrapper.Initialise();
 }
 public WindsorNancyBootstrapperFixture()
 {
     this.bootstrapper = new FakeWindsorNancyBootstrapper();
     this.bootstrapper.Initialise();
 }