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