public void GivenMarketingAcknowledgementTemplateDoesNotExist(Table templates) { BBCRMHomePage.OpenMarketingAndCommunicationsFA(); MarketingAndCommFunctionalArea.MarketingAcknowledgements(); foreach (var template in templates.Rows) { if (MarketingAcknowledgementsPanel.TemplateExists(template)) { MarketingAcknowledgementsPanel.DeleteTemplate(template); } } }
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)); } } }