Esempio n. 1
0
        public void applies_attributes_against_the_IChain()
        {
            var chain = RouteChain.For <ConfiguredEndpoint>(x => x.get_wrapper3());

            var frames = chain.DetermineFrames();

            frames.OfType <FakeWrapper3>().Any().ShouldBeTrue();
        }
Esempio n. 2
0
        public void applies_the_Configure_IChain_method()
        {
            var chain = RouteChain.For <ConfiguredEndpoint>(x => x.get_configured());

            var frames = chain.DetermineFrames();

            frames.OfType <FakeWrapper>().Any().ShouldBeTrue();
        }
Esempio n. 3
0
        public void applies_the_Configure_RoutedChain_method()
        {
            var chain = RouteChain.For <ConfiguredEndpoint>(x => x.get_configured());

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

            frames.OfType <FakeTransaction>().Any().ShouldBeTrue();
        }
        public void applies_attributes_against_the_RouteChain()
        {
            var chain = RouteChain.For <ConfiguredEndpoint>(x => x.get_wrapper2());

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

            frames.OfType <FakeWrapper2>().Any().ShouldBeTrue();
        }
 public void do_not_flush_if_no_usage_of_imessage_context()
 {
     RouteChain.For <SomeEndpointGuy>(x => x.post_do_nothing(null))
     .ShouldFlushOutgoingMessages()
     .ShouldBeFalse();
 }
 public void do_flush_if_method_uses_IMessageContext()
 {
     RouteChain.For <SomeEndpointGuy>(x => x.post_do_stuff_with_messages(null, null))
     .ShouldFlushOutgoingMessages()
     .ShouldBeTrue();
 }