private void AddHangaroundsFormValues(BrowserContext with, int numberOfHangarounds) { if (numberOfHangarounds > 0) { for (var i = 0; i < numberOfHangarounds; i++) { var number = i.ToString(); with.FormValue("Hangarounds.Name" + number, "Hangaround #" + number); } } }
private void AddEvilFormValue(BrowserContext with, string evilstring) { var evil = evilstring.ToLower() == "good" ? false : true; with.FormValue("Evil", evil.ToString()); }