public void input_for_a_completely_different_model()
        {
            execute(page => {
                var model = new DifferentThing {Order = 123};

                page.Get<IFubuRequest>().Set(model);

                return page.InputFor<DifferentThing>(x => x.Order);
            });

            theResult.ShouldEqual("<input type=\"text\" value=\"123\" name=\"Order\" />");
        }
        public void display_for_a_completely_different_model()
        {
            execute(page =>
            {
                var model = new DifferentThing { Order = 123 };

                page.Get<IFubuRequest>().Set(model);

                return page.DisplayFor<DifferentThing>(x => x.Order);
            });

            theResult.ShouldEqual("<span id=\"Order\">123</span>");
        }
예제 #3
0
        public void input_for_a_completely_different_model()
        {
            execute(page => {
                var model = new DifferentThing {
                    Order = 123
                };

                page.Get <IFubuRequest>().Set(model);

                return(page.InputFor <DifferentThing>(x => x.Order));
            });

            theResult.ShouldEqual("<input type=\"text\" value=\"123\" name=\"Order\" />");
        }
예제 #4
0
        public void display_for_a_completely_different_model()
        {
            execute(page =>
            {
                var model = new DifferentThing {
                    Order = 123
                };

                page.Get <IFubuRequest>().Set(model);

                return(page.DisplayFor <DifferentThing>(x => x.Order));
            });

            theResult.ShouldEqual("<span id=\"Order\">123</span>");
        }