protected override void configure(FubuRegistry registry)
 {
     registry.UseSpark();
     registry.Actions.IncludeType<ProfileController>();
     registry.Views.TryToAttachWithDefaultConventions();
     registry.Views.Profile<Mobile>("m.");
     registry.IncludeDiagnostics(true);
 }
        protected override void configure(FubuRegistry registry)
        {
            registry.Actions.IncludeType<HelloRazorController>();

            registry.IncludeDiagnostics(true);

            //registry.UseSpark();
            registry.UseRazor();

            registry.Views
                .TryToAttachWithDefaultConventions();
        }
        protected override void configure(FubuRegistry registry)
        {
            registry.Actions.IncludeType<ClosestController>();
            registry.Actions.IncludeType<UsesDefaultController>();

            registry.IncludeDiagnostics(true);

            registry.Import<RazorEngineRegistry>();

            registry.Views
                .TryToAttachWithDefaultConventions();
        }
        public void BeforeEach()
        {
            _parent = new FubuRegistry();
            _parent.IncludeDiagnostics(true);

            _import = new FubuRegistry();
            _import.IncludeDiagnostics(true);
            _import.Actions
                .IncludeType<Handler1>()
                .IncludeType<Handler2>();

            _import.Configure(x =>
            {
                _importObserver = x.Observer;
                _importActions = x.Actions()
                    .Where(a => a.HandlerType.Namespace == GetType().Namespace);
            });

            _parent.Import(_import, "import");
            _parentObserver = _parent.BuildGraph().Observer;
        }
 protected override void configure(FubuRegistry registry)
 {
     registry.Import<SparkEngine>();
     registry.IncludeDiagnostics(true);
     registry.Actions.IncludeType<PartialController>();
     registry.Views.RegisterActionLessViews(v => v.ViewModel == typeof (PartialInput));
     registry.Views.RegisterActionLessViews(v => v.ViewModel == typeof (MoreInput));
     registry.Views.TryToAttachWithDefaultConventions();
 }
        public FubuApplication BuildApplication()
        {
            return FubuApplication.For(() =>
            {
                var registry = new FubuRegistry();
                registry.IncludeDiagnostics(true);
                _configuration(registry);

                return registry;
            }).StructureMap(new Container());
        }