Exemplo n.º 1
0
        public void GivenAMailPackageExistsWith(Table packages)
        {
            foreach (var package in packages.Rows)
            {
                BBCRMHomePage.OpenMarketingAndCommunicationsFA();
                MarketingAndCommFunctionalArea.Packages();

                IDictionary <string, string> packageRow = new Dictionary <string, string> {
                    { "Channel", "Mail" }
                };
                if (package.ContainsKey("Name") && package["Name"] != string.Empty)
                {
                    packageRow.Add("Name", package["Name"]);
                }
                if (package.ContainsKey("Letter") && package["Letter"] != string.Empty)
                {
                    packageRow.Add("Content", package["Letter"]);
                }
                if (PackagesPanel.PackageExists(packageRow))
                {
                    PackagesPanel.DeletePackage(packageRow);
                }

                PackagesPanel.AddMailPackage();
                PackageDialog.SetFields(package);
                Dialog.Save();
            }
        }
Exemplo n.º 2
0
 public void GivenPackageExists(Table packages)
 {
     foreach (var package in packages.Rows)
     {
         BBCRMHomePage.OpenMarketingAndCommunicationsFA();
         MarketingAndCommFunctionalArea.Packages();
         if (PackagesPanel.PackageExists(package))
         {
             continue;
         }
         PackagesPanel.AddMailPackage();
         PackageDialog.SetFields(package);
     }
 }