public void ThenThePledgeSubtypeIs(string subtype) { if (!RevenueRecordPanel.IsSubtype(subtype)) { throw new ArgumentException(String.Format("'{0}' was not the subtype of the revenue record.", subtype)); } }
public void ThenTheRevenueRecordForIsMarkedAsAcknowledged(string constituent) { WhenNavigateToTheRevenueRecordFor(constituent); if (!RevenueRecordPanel.IsAcknowledged()) { throw new ArgumentException("Revenue record not acknowledged."); } }
public void ThenTheRevenueRecordForIsMarkedAsReceipted(string constituent) { WhenNavigateToTheRevenueRecordFor(constituent); // go to the revenue record for a particular constituent if (!RevenueRecordPanel.IsReceipted()) { throw new ArgumentException("Revenue record not receipted."); } }
public void ThenTheRevenueRecordForHasPayments(string constituent, Table payments) { WhenNavigateToTheRevenueRecordFor(constituent); foreach (var payment in payments.Rows) { if (!RevenueRecordPanel.PaymentExists(payment)) { throw new ArgumentException(String.Format( "Payment '{0}' does not exist on the revenue record panel", payment.Values)); } } }
public void ThenTheRevenueRecordForHasDonations(string constituent, Table donations) { RevenueSteps.WhenNavigateToTheRevenueRecordFor(constituent); foreach (var donation in donations.Rows) { if (!RevenueRecordPanel.PaymentExists(donation)) { throw new ArgumentException( String.Format("Donation '{0}' does not exist on the revenue record panel", donation.Values)); } } }
public void ThenTheRevenueRecordForHasPayments(string constituent, Table payments) { try { WhenNavigateToTheRevenueRecordFor(constituent); //find the payment in the revenue panel foreach (var payment in payments.Rows) { if (!RevenueRecordPanel.PaymentExists(payment)) { throw new ArgumentException(String.Format( "Payment '{0}' does not exist on the revenue record panel", payment.Values)); } } } catch (Exception ex) { throw new Exception("Error: could not find the revenue record which has payments . " + ex.Message); } }