Ejemplo n.º 1
0
 public RenderFubuViewBehavior(IViewEngine <IFubuView> engine, IFubuRequest request, ViewPath view, IViewActivator activator)
     : base(PartialBehavior.Executes)
 {
     _engine    = engine;
     _request   = request;
     _path      = view;
     _activator = activator;
 }
Ejemplo n.º 2
0
        public void SetUp()
        {
            path = new ViewPath
            {
                ViewName = "something"
            };

            var render = new WebFormView(path.ViewName);
            var container = new Container(x =>
            {
                x.For<IActionBehavior>().Use(new ObjectDefInstance(render.As<IContainerModel>().ToObjectDef()));
                x.For<IWebFormsControlBuilder>().Use<WebFormsControlBuilder>();
                x.For<IWebFormRenderer>().Use<WebFormRenderer>();
                x.For<IOutputWriter>().Use<HttpResponseOutputWriter>();
                x.For<IFubuRequest>().Use<InMemoryFubuRequest>();
                x.For<IViewActivator>().Use<NulloViewActivator>();
            });

            behavior = container.GetInstance<IActionBehavior>();
        }
 public RenderFubuWebFormView(WebFormViewEngine<IFubuView> engine, IFubuRequest request, ViewPath view, IViewActivator activator)
     : base(engine, request, view, activator)
 {
 }