Esempio n. 1
0
        public void render_status_behavior_is_attached_to_chains_that_return_a_status_code()
        {
            var graph = new RestfulServicesRegistry().BuildGraph();

            graph.BehaviorFor <RestfulService>(x => x.Action1(null)).Outputs.Single()
            .ShouldBeOfType <OutputNode>().BehaviorType.ShouldEqual(typeof(RenderStatusCodeBehavior));
        }
        public void look_at_our_application()
        {
            var registry = new RestfulServicesRegistry();
            var writer
                = new BehaviorGraphWriter(registry.BuildGraph(), null, null);

            Debug.WriteLine(writer.PrintRoutes());
        }
        public void render_status_behavior_is_attached_to_chains_that_return_a_status_code()
        {
            var graph = new RestfulServicesRegistry().BuildGraph();
            var outputs = graph.BehaviorFor<RestfulService>(x => x.Action1(null)).Outputs;

            outputs.Single()
                .ShouldBeOfType<OutputNode>().BehaviorType.ShouldEqual(typeof (RenderStatusCodeBehavior));
        }
Esempio n. 4
0
        public void look_at_our_application()
        {
            var registry = new RestfulServicesRegistry();
            var writer
                = new BehaviorGraphWriter(registry.BuildGraph(), null, null, new StubCurrentHttpRequest());

            Debug.WriteLine(writer.PrintRoutes());
        }