상속: UnityNancyBootstrapper
예제 #1
0
        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();
 }
예제 #3
0
 public UnityNancyBootstrapperFixture()
 {
     _Bootstrapper = new FakeUnityNancyBootstrapper();
     _Bootstrapper.Initialise();
 }