private void btnGetTest_Click(object sender, EventArgs e) { var unitTestForm = new UnitTestForm(); unitTestForm.MethodName = tbMethodName.Text.Trim(); unitTestForm.ApiUrl = _apiUrl; unitTestForm.ResultJson = tbJson.Text; unitTestForm.ShowDialog(); }
private void btnGetTest_Click(object sender, EventArgs e) { using (var unitTestForm = new UnitTestForm { MethodName = tbMethodName.Text.Trim(), ApiUrl = _apiUrl, ResultJson = tbJson.Text }) { unitTestForm.ShowDialog(); } }