public void GivenIStartToAddAPayment(Table paymentFieldRows) { BBCRMHomePage.OpenRevenueFA(); RevenueFunctionalArea.AddAPayment(); foreach (var paymentFieldValues in paymentFieldRows.Rows) { if (paymentFieldValues.ContainsKey("Constituent") && paymentFieldValues["Constituent"] != string.Empty) { paymentFieldValues["Constituent"] += uniqueStamp; } PaymentDialog.SetFields(paymentFieldValues); } }
public void GivenIStartToAddAPayment(Table paymentFieldRows) { try { BBCRMHomePage.OpenRevenueFA(); //Open revenue functional area RevenueFunctionalArea.AddAPayment(); // add a payment foreach (var paymentFieldValues in paymentFieldRows.Rows) { if (paymentFieldValues.ContainsKey("Constituent") && paymentFieldValues["Constituent"] != string.Empty) { paymentFieldValues["Constituent"] += uniqueStamp; //The unique stamp is a series of numbers to keep constituents different from each other } PaymentDialog.SetFields(paymentFieldValues); //set the fields in the payment according to the table parameter } } catch (Exception ex) { throw new Exception("Error: could not start to add a payment. " + ex.Message); } }