Beispiel #1
0
        public IEnumerable <ViewDto> Usage(int appId, Guid guid)
        => GetService <UsageBackend>().Init(Log)
        .ViewUsage(appId, guid, (views, blocks) =>
        {
            // create array with all 2sxc modules in this portal
            var allMods = new Pages.Pages(Log).AllModulesWithContent(PortalSettings.PortalId);
            Log.Add($"Found {allMods.Count} modules");

            return(views.Select(vwb => new ViewDto().Init(vwb, blocks, allMods)));
        });
Beispiel #2
0
 public App()
 {
     // The root page of your application
     MainPage = new Pages.Pages();
 }
Beispiel #3
0
 public static void SetUp()
 {
     driver = DriverFactory.GetInstance().GetWebDriver().Value;
     pages  = new Pages.Pages(driver);
     pages.SetUBSCookie();
 }