Ejemplo n.º 1
0
 public void ThenThePledgeSubtypeIs(string subtype)
 {
     if (!RevenueRecordPanel.IsSubtype(subtype))
     {
         throw new ArgumentException(String.Format("'{0}' was not the subtype of the revenue record.", subtype));
     }
 }
Ejemplo n.º 2
0
 public void ThenTheRevenueRecordForIsMarkedAsAcknowledged(string constituent)
 {
     WhenNavigateToTheRevenueRecordFor(constituent);
     if (!RevenueRecordPanel.IsAcknowledged())
     {
         throw new ArgumentException("Revenue record not acknowledged.");
     }
 }
Ejemplo n.º 3
0
 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.");
     }
 }
Ejemplo n.º 4
0
 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));
         }
     }
 }
Ejemplo n.º 5
0
 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));
         }
     }
 }
Ejemplo n.º 6
0
 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);
     }
 }