Exemplo n.º 1
0
 public void WhenICreateAReceiptProcess(Table receipts)
 {
     foreach (var receipt in receipts.Rows)
     {
         BBCRMHomePage.OpenMarketingAndCommunicationsFA();
         MarketingAndCommFunctionalArea.Receipts();
         if (receipt.ContainsKey("Name") && !string.IsNullOrEmpty(receipt["Name"]))
         {
             receipt["Name"] += uniqueStamp;
         }
         ReceiptsPanel.AddReceipt(receipt);
     }
 }
Exemplo n.º 2
0
 public void WhenICreateAReceiptProcess(Table receipts)
 {
     try
     {
         foreach (var receipt in receipts.Rows)
         {
             BBCRMHomePage.OpenMarketingAndCommunicationsFA(); //Open marketing functional area
             MarketingAndCommFunctionalArea.Receipts();        // Open receipts area
             if (receipt.ContainsKey("Name") && !string.IsNullOrEmpty(receipt["Name"]))
             {
                 receipt["Name"] += uniqueStamp;
             }
             ReceiptsPanel.AddReceipt(receipt);  // add a receipt
         }
     }
     catch (Exception ex)
     {
         throw new Exception("Error: could not create a receipt process. " + ex.Message);
     }
 }