Exemple #1
0
        public void will_apply_generic_chain_attributes()
        {
            var chain  = chainFor(x => x.post_select_name(null));
            var frames = chain.DetermineFrames(ConnegRules.Empty());

            chain.Middleware.Any(x => x is FakeMiddleware1).ShouldBeTrue();
            chain.Middleware.Any(x => x is FakeMiddleware2).ShouldBeTrue();
        }
Exemple #2
0
        public void applies_the_Configure_IChain_method()
        {
            var chain = RouteChain.For <ConfiguredEndpoint>(x => x.get_configured());

            var frames = chain.DetermineFrames(ConnegRules.Empty());

            frames.OfType <FakeWrapper>().Any().ShouldBeTrue();
        }
Exemple #3
0
        public void applies_attributes_against_the_IChain()
        {
            var chain = RouteChain.For <ConfiguredEndpoint>(x => x.get_wrapper3());

            var frames = chain.DetermineFrames(ConnegRules.Empty());

            frames.OfType <FakeWrapper3>().Any().ShouldBeTrue();
        }
        public void applies_the_Configure_RoutedChain_method()
        {
            var chain = RouteChain.For <ConfiguredEndpoint>(x => x.get_configured());

            var frames = chain.DetermineFrames(ConnegRules.Empty(), JasperGenerationRules.Empty());

            frames.OfType <FakeTransaction>().Any().ShouldBeTrue();
        }