Example #1
0
 public void GivenDesignationExists(string designation)
 {
     BBCRMHomePage.OpenFundraisingFA();
     if (!FundraisingFunctionalArea.DesignationExists(designation))
     {
         throw new ArgumentException(String.Format("Designation '{0}' does not exist.", designation));
     }
 }
Example #2
0
 public void ThenIAddAPurposeWithADesignationNamedWithLookupID(string designationName, string lookupID)
 {
     try
     {
         designationName += uniqueStamp;                                    //The unique stamp is a series of numbers to keep purpose names different from each other
         lookupID        += uniqueStamp;                                    // the unique stamp is a series of numbers to keep the lookup ids different
         BBCRMHomePage.OpenFundraisingFA();                                 //open the fundraising functional area
         FundraisingFunctionalArea.OpenLink("Add purpose and designation"); //
         AddFieldsToPurpose(designationName, lookupID);                     // input info in the various form controls
     }
     catch (Exception ex)
     {
         throw new Exception("Error: could not add purpose/designation. " + ex.Message);
     }
 }