Ejemplo n.º 1
0
        public Response Submit(SubmitValue submit, ISimulatedHttpClient client, Action <Request> modifier = null)
        {
            var request = new Request(Action, Method);

            AddFormValues(request);

            if (submit != null)
            {
                submit.SetFormValue(request);
            }

            return(client.Process(request, modifier));
        }
Ejemplo n.º 2
0
 public TypedForm <T> AddSubmitValue(SubmitValue submitValue)
 {
     _submitValues.Add(submitValue);
     return(this);
 }
Ejemplo n.º 3
0
        protected virtual void AddSubmit <T>(TypedForm <T> form, ElementWrapper inputSubmit)
        {
            var submitValue = SubmitValue.FromElement(inputSubmit);

            form.AddSubmitValue(submitValue);
        }