Exemple #1
0
        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 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();
 }
Exemple #4
0
 public string post_form_values(FormInput input)
 {
     return(input.ToString());
 }