Dictionary <string, string> IConvertibleToPostData.GetPostKeys() { Dictionary <string, string> values = new Dictionary <string, string>(); values.Add("firstName", FirstName); values.Add("middleNames", MiddleNames); values.Add("lastName", LastName); values.Add("country", Country); values.Add("gender", Gender); values.Add("email", Email); values.Add("phoneNumber", PhoneNumber); values.Add("dateOfBirthYear", DateOfBirthYear.ToString()); values.Add("dateOfBirthMonth", DateOfBirthMonth.ToString()); values.Add("dateOfBirthDay", DateOfBirthDay.ToString()); PostDataCalculator.Merge(ref values, Bank, "bank"); PostDataCalculator.Merge(ref values, ShippingAddress, "shippingAddress"); PostDataCalculator.Merge(ref values, BillingAddress, "address"); return(values); }
/// <summary> /// Enters the date of birth. /// </summary> /// <param name="dateOfBirthDay">Date of birth day.</param> /// <param name="dateOfBirthMonth">Date of birth month.</param> /// <param name="dateOfBirthYear">Date of birth year.</param> public void EnterDateOfBirth(string dateOfBirthDay, string dateOfBirthMonth, string dateOfBirthYear) { DateOfBirthDay.SendKeys(dateOfBirthDay); DateOfBirthMonth.SendKeys(dateOfBirthMonth); DateOfBirthYear.SendKeys(dateOfBirthYear); }
public void SelectSetOfBirthYear(string year) { DateOfBirthYear.SelectByValue(year); }