public void ThenAPledgeExistsWithDesignations(Table designations) { foreach (var designation in designations.Rows) { if (!PledgePanel.DesignationExists(designation)) { throw new ArgumentException(String.Format("Designation '{0}' does not exist for current pledge.", designation)); } } }
public void ThenTheRevenueRecordForHasDesignations(string constituent, Table designations) { WhenNavigateToTheRevenueRecordFor(constituent); foreach (var designation in designations.Rows) { if (!PledgePanel.DesignationExists(designation)) { throw new ArgumentException(String.Format("Designation '{0}' does not exist for current pledge.", designation)); } } }
public void ThenAPledgeExistsWithDesignations(Table designations) { try { foreach (var designation in designations.Rows) //find the designations for the pledges in the batch { if (!PledgePanel.DesignationExists(designation)) { throw new ArgumentException(String.Format("Designation '{0}' does not exist for current pledge.", designation)); } } } catch (Exception ex) { throw new Exception("Error: could not find a pledge with designations. " + ex.Message); } }
public void ThenTheRevenueRecordForHasDesignations(string constituent, Table designations) { try { WhenNavigateToTheRevenueRecordFor(constituent); foreach (var designation in designations.Rows) //find out if a designation exists for a certain pledge { if (!PledgePanel.DesignationExists(designation)) { throw new ArgumentException(String.Format("Designation '{0}' does not exist for current pledge.", designation)); } } } catch (Exception ex) { throw new Exception("Error: could not find the revenue record with designations. " + ex.Message); } }