Пример #1
0
 public void ThenAPledgeExistsForConstituentWithAmount(string constituent, string amount)
 {
     constituent += uniqueStamp;
     if (!PledgePanel.IsPledgeConstituent(constituent))
     {
         throw new ArgumentException(String.Format("Current pledge panel is not for constituent '{0}'",
                                                   constituent));
     }
     if (!PledgePanel.IsPledgeAmount(amount))
     {
         throw new ArgumentException(String.Format("Current pledge panel is not for amount '{0}'", amount));
     }
 }
Пример #2
0
 public void ThenAPledgeExistsForConstituentWithAmount(string constituent, string amount)
 {
     //find the pledge for the given constituent at a certain amount
     constituent += uniqueStamp;   //The unique stamp is a series of numbers to keep constituents different from each other
     if (!PledgePanel.IsPledgeConstituent(constituent))
     {
         throw new ArgumentException(String.Format("Current pledge panel is not for constituent '{0}'",
                                                   constituent));
     }
     if (!PledgePanel.IsPledgeAmount(amount))
     {
         throw new ArgumentException(String.Format("Current pledge panel is not for amount '{0}'", amount));
     }
 }