Exemplo n.º 1
0
 public void WhenIStartToAddAPledge(Table pledgeValues)
 {
     BBCRMHomePage.OpenRevenueFA();
     RevenueFunctionalArea.AddAPledge();
     foreach (var pledgeValueRow in pledgeValues.Rows)
     {
         if (pledgeValueRow.ContainsKey("Constituent") && pledgeValueRow["Constituent"] != string.Empty)
         {
             pledgeValueRow["Constituent"] += uniqueStamp;
         }
         PledgeDialog.SetFields(pledgeValueRow);
     }
 }
Exemplo n.º 2
0
 public void WhenIAddAPledge(Table pledges)
 {
     foreach (var pledge in pledges.Rows)
     {
         BBCRMHomePage.OpenRevenueFA();
         if (pledge.ContainsKey("Constituent") && pledge["Constituent"] != string.Empty)
         {
             pledge["Constituent"] += uniqueStamp;
         }
         RevenueFunctionalArea.AddAPledge(pledge);
         Dialog.Save();
     }
 }
Exemplo n.º 3
0
 public void WhenIStartToAddAPledge(Table pledgeValues)
 {
     try
     {
         BBCRMHomePage.OpenRevenueFA();      //Open revenue functional area
         RevenueFunctionalArea.AddAPledge(); //create a new pledge
         foreach (var pledgeValueRow in pledgeValues.Rows)
         {
             if (pledgeValueRow.ContainsKey("Constituent") && pledgeValueRow["Constituent"] != string.Empty)
             {
                 pledgeValueRow["Constituent"] += uniqueStamp;   //The unique stamp is a series of numbers to keep constituents different from each other
             }
             PledgeDialog.SetFields(pledgeValueRow);
         }
     }
     catch (Exception ex)
     {
         throw new Exception("Error: could not start to add a pledge. " + ex.Message);
     }
 }
Exemplo n.º 4
0
 public void WhenIAddAPledge(Table pledges)
 {
     try
     {
         foreach (var pledge in pledges.Rows)
         {
             BBCRMHomePage.OpenRevenueFA();  //Open revenue functional area
             if (pledge.ContainsKey("Constituent") && pledge["Constituent"] != string.Empty)
             {
                 pledge["Constituent"] += uniqueStamp;   //The unique stamp is a series of numbers to keep constituents different from each other
             }
             //add and save a pledge
             RevenueFunctionalArea.AddAPledge(pledge); //add a pledge
             Dialog.Save();                            //save the pledge
         }
     }
     catch (Exception ex)
     {
         throw new Exception("Error: could not add a pledge. " + ex.Message);
     }
 }