コード例 #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));
        }
コード例 #2
0
 public TypedForm <T> AddSubmitValue(SubmitValue submitValue)
 {
     _submitValues.Add(submitValue);
     return(this);
 }
コード例 #3
0
        protected virtual void AddSubmit <T>(TypedForm <T> form, ElementWrapper inputSubmit)
        {
            var submitValue = SubmitValue.FromElement(inputSubmit);

            form.AddSubmitValue(submitValue);
        }