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>();
        }
示例#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>();
        }
示例#3
0
 public WindsorNancyBootstrapperFixture()
 {
     this.bootstrapper = new FakeWindsorNancyBootstrapper();
     this.bootstrapper.Initialise();
 }
 public WindsorNancyBootstrapperFixture()
 {
     this.bootstrapper = new FakeWindsorNancyBootstrapper();
     this.bootstrapper.Initialise();
 }