예제 #1
0
 public void GivenMarketingAcknowledgementTemplateDoesNotExist(Table templates)
 {
     BBCRMHomePage.OpenMarketingAndCommunicationsFA();
     MarketingAndCommFunctionalArea.MarketingAcknowledgements();
     foreach (var template in templates.Rows)
     {
         if (MarketingAcknowledgementsPanel.TemplateExists(template))
         {
             MarketingAcknowledgementsPanel.DeleteTemplate(template);
         }
     }
 }
예제 #2
0
 public void ThenAMarketingAcknowledgementTemplateExists(Table templates)
 {
     BBCRMHomePage.OpenMarketingAndCommunicationsFA();
     MarketingAndCommFunctionalArea.MarketingAcknowledgements();
     foreach (var template in templates.Rows)
     {
         if (!MarketingAcknowledgementsPanel.TemplateExists(template))
         {
             throw new ArgumentException(String.Format("Template '{0}' does not exist.", template.Values));
         }
     }
 }