コード例 #1
0
        public void applies_the_Configure_RoutedChain_method()
        {
            var chain = RouteChain.For <ConfiguredEndpoint>(x => x.get_configured());

            var frames = chain.DetermineFrames(ConnegRules.Empty(), new GenerationRules(), Container.Empty());

            frames.OfType <FakeTransaction>().Any().ShouldBeTrue();
        }
コード例 #2
0
        public void applies_attributes_against_the_RouteChain()
        {
            var chain = RouteChain.For <ConfiguredEndpoint>(x => x.get_wrapper2());

            var frames = chain.DetermineFrames(ConnegRules.Empty(), new GenerationRules(), Container.Empty());

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