public void WhenIStartToAddAPledge(Table pledgeValues) { BBCRMHomePage.OpenRevenueFA(); RevenueFunctionalArea.AddAPledge(); foreach (var pledgeValueRow in pledgeValues.Rows) { if (pledgeValueRow.ContainsKey("Constituent") && pledgeValueRow["Constituent"] != string.Empty) { pledgeValueRow["Constituent"] += uniqueStamp; } PledgeDialog.SetFields(pledgeValueRow); } }
public void WhenIAddAPledge(Table pledges) { foreach (var pledge in pledges.Rows) { BBCRMHomePage.OpenRevenueFA(); if (pledge.ContainsKey("Constituent") && pledge["Constituent"] != string.Empty) { pledge["Constituent"] += uniqueStamp; } RevenueFunctionalArea.AddAPledge(pledge); Dialog.Save(); } }
public void WhenIStartToAddAPledge(Table pledgeValues) { try { BBCRMHomePage.OpenRevenueFA(); //Open revenue functional area RevenueFunctionalArea.AddAPledge(); //create a new pledge foreach (var pledgeValueRow in pledgeValues.Rows) { if (pledgeValueRow.ContainsKey("Constituent") && pledgeValueRow["Constituent"] != string.Empty) { pledgeValueRow["Constituent"] += uniqueStamp; //The unique stamp is a series of numbers to keep constituents different from each other } PledgeDialog.SetFields(pledgeValueRow); } } catch (Exception ex) { throw new Exception("Error: could not start to add a pledge. " + ex.Message); } }
public void WhenIAddAPledge(Table pledges) { try { foreach (var pledge in pledges.Rows) { BBCRMHomePage.OpenRevenueFA(); //Open revenue functional area if (pledge.ContainsKey("Constituent") && pledge["Constituent"] != string.Empty) { pledge["Constituent"] += uniqueStamp; //The unique stamp is a series of numbers to keep constituents different from each other } //add and save a pledge RevenueFunctionalArea.AddAPledge(pledge); //add a pledge Dialog.Save(); //save the pledge } } catch (Exception ex) { throw new Exception("Error: could not add a pledge. " + ex.Message); } }