public void can_bind_to_form_post_data()
        {
            var model = new FormInput{
                Color = "Orange",
                Direction = "South"
            };

            Harness.Endpoints.PostAsForm(model).ReadAsText()
                .ShouldEqual(model.ToString());
        }
 public string post_form_values(FormInput input)
 {
     return input.ToString();
 }
Example #3
0
 public string post_form_values(FormInput input)
 {
     return(input.ToString());
 }