public static bool AddSite(List <SiteData> siteList) { if (siteList.Count == 0) { return(false); } return(BP_SiteCreationUtilities.EnterSiteData(siteList[0])); }
public static bool AddSites(IEnumerable <SiteData> sites, out List <String> failSiteList) { failSiteList = new List <String>(); foreach (SiteData site in sites) { BP_ActionPaletteUtilities.InvokeActionPaletteLink("Add Site", "SiteListActions"); if (!BP_SiteCreationUtilities.EnterSiteData(site)) { failSiteList.Add(site.SiteId); Control_ActionUtilities.Click(DL_AddSitePage.CancelButton, String.Empty); } } //return failSiteList.Count == 0; return(true); }
public static bool EnterSiteData(SiteData site) { BP_SiteCreationUtilities.SetSiteData(DL_AddSitePage.AddSiteTable, site); Control_ActionUtilities.Click_PerssEnterKey(DL_AddSitePage.SaveButton, String.Empty); return(IsSiteSaved()); }