public void SetUp()
        {
            registry = new FubuRegistry(x =>
            {

                // Tell FubuMVC to enrich the behavior chain for each
                // RouteHandler with the "FakeUnitOfWorkBehavior"
                // Kind of like a global [ActionFilter] in MVC
                x.Policies.EnrichCallsWith<FakeUnitOfWorkBehavior>(
                    call => call.Method.Name == "SomeAction");

                // Explicit junk you would only do for exception cases to
                // override the conventions
                x.Route("area/sub/{Name}/{Age}")
                    .Calls<TestController>(c => c.SomeAction(null)).OutputToJson();

                x.Route("area/sub2/{Name}/{Age}")
                    .Calls<TestController>(c => c.AnotherAction(null)).OutputToJson();

                x.Route("area/sub3/{Name}/{Age}")
                    .Calls<TestController>(c => c.ThirdAction(null)).OutputToJson();
            });

            _graph = registry.BuildLightGraph();
        }
        public void SetUp()
        {
            var config = new ExplicitRouteConfiguration("some/pattern");
            config.Chain();
            _config = config;
            var fubuRegistry = new FubuRegistry(registry =>
            {
                registry.Actions.IncludeTypes(x => false);

                registry.Route("some/pattern")
                    .Calls<InputController>(c => c.DoSomething(null)).OutputToJson();
            });
            _graph = fubuRegistry
                .BuildLightGraph();

            _graph.Behaviors.ShouldHaveCount(1);
            _config.Configure(_graph);
        }