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.ShouldBe("<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.ShouldBe("<span id=\"Order\">123</span>");
        }
Example #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.ShouldBe("<input type=\"text\" value=\"123\" name=\"Order\" />");
        }
Example #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.ShouldBe("<span id=\"Order\">123</span>");
        }