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>"); }
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>"); }