internal RequestSender(RequestData requestData) { _requestData = requestData; _numberOfRequestsPrTask = _requestData.NumberOfRequests / _requestData.NumberOfTasks; }
private RequestData GetRequestDataFromForm() { string url = cmboBxUrls.Text; int numberOfRequests = int.Parse(txtBxNumberOfRequests.Text); int numberOfTasks = int.Parse(txtBxNumberOfTasks.Text); bool writeResultsToOutput = chckBxWriteResponseToConsole.Checked; var requestData = new RequestData(url, numberOfRequests, numberOfTasks, writeResultsToOutput); return requestData; }