public List <WidgetPlacement> GetWidgetsForTab(DashboardTab tab) { return(_context.GetWidgetsForTab(tab)); }
public static string EncodeReturnParameters(int accountID, TransactionType transactionType, DashboardTab returnTab) { return Convert.ToBase64String(Encoding.UTF8.GetBytes(accountID + "-" + (int)transactionType + "-" + (int)returnTab)); }
public static List <WidgetPlacement> GetWidgetsForTab(this ITuxDbContext context, DashboardTab tab) { return(GetWidgetsForTab(context, tab.TabId)); }
public static Task <List <WidgetPlacement> > GetWidgetsForTabAsync(this ITuxDbContext context, DashboardTab tab) => GetWidgetsForTabAsync(context, tab.TabId);
public static async Task <List <WidgetPlacement> > GetWidgetsForTabAsync(this ITuxDbContext context, DashboardTab tab) { return(await GetWidgetsForTabAsync(context, (string)tab.TabId)); }
public void VerifyTab(DashboardTab tabChoice) { bool isCorrect = false; switch (tabChoice) { case DashboardTab.EventDetails: //Verify presence of setup, registration, and additional sections, as well as event statistics if (UIUtil.DefaultProvider.IsElementPresent("ctl00_ctl00_cphDialog_cpMgrMain_ulSetupLinks", LocateBy.Id) && UIUtil.DefaultProvider.IsElementPresent("ctl00_ctl00_cphDialog_cpMgrMain_ulRegistrationLinks", LocateBy.Id) && UIUtil.DefaultProvider.IsElementPresent("ctl00_ctl00_cphDialog_cpMgrMain_ulAdditionalLinks", LocateBy.Id) && UIUtil.DefaultProvider.IsElementPresent("ctl00_ctl00_cphDialog_cpMgrMain_wrpEventStats", LocateBy.Id)) isCorrect = true; break; case DashboardTab.Reports: //Verify presence of sections for common, attendee, financial, miscellaneous, and custom reports if (UIUtil.DefaultProvider.IsElementPresent("ctl00_ctl00_cphDialog_cpMgrMain_pnlMainReports", LocateBy.Id) && UIUtil.DefaultProvider.IsElementPresent("ctl00_ctl00_cphDialog_cpMgrMain_pnlAttendeeReports", LocateBy.Id) && UIUtil.DefaultProvider.IsElementPresent("ctl00_ctl00_cphDialog_cpMgrMain_pnlFinancialReports", LocateBy.Id) && UIUtil.DefaultProvider.IsElementPresent("ctl00_ctl00_cphDialog_cpMgrMain_pnlMiscReports", LocateBy.Id) && UIUtil.DefaultProvider.IsElementPresent("ctl00_ctl00_cphDialog_cpMgrMain_pnlCustomReports", LocateBy.Id)) isCorrect = true; break; case DashboardTab.XEventReports: //Verify presence of standard and custom XEvent Report list if (UIUtil.DefaultProvider.IsElementPresent("ctl00_ctl00_cphDialog_cpMgrMain_listXEventReports_pnlStandardXReports", LocateBy.Id) && UIUtil.DefaultProvider.IsElementPresent("ctl00_ctl00_cphDialog_cpMgrMain_listXEventReports_pnlCustomXEventReports", LocateBy.Id)) isCorrect = true; break; case DashboardTab.LabelsBadges: //Verify presence of labels and badges section if (UIUtil.DefaultProvider.IsElementPresent("ctl00_ctl00_cphDialog_cpMgrMain_pnlBadges", LocateBy.Id)) isCorrect = true; break; case DashboardTab.Directories: //Verify presence of user list if (UIUtil.DefaultProvider.IsElementPresent("ctl00_ctl00_cphDialog_cpMgrMain_pnlDirectories", LocateBy.Id)) isCorrect = true; break; } VerifyTool.VerifyValue(true, isCorrect, "On dashboard tab " + tabChoice.ToString()); }
public void ChooseTabAndVerify(DashboardTab tabChoice) { ChooseTab(tabChoice); VerifyTab(tabChoice); }
public void ChooseTab(DashboardTab tabChoice) { string tabLocatorFormat = StringEnum.GetStringValue(tabChoice); //string tabName = string.Empty; UIUtil.DefaultProvider.WaitForDisplayAndClick(tabLocatorFormat, LocateBy.LinkText); UIUtil.DefaultProvider.WaitForAJAXRequest(); }
//A method to verify that a given tenant is added for a given property internal void VerifyPropertyTenant(int TestDataSetNumber) { //Navigate into the tenants page DashboardTab.Click(); MyTenantsLink.Click(); }