示例#1
0
        public static List <Platform> GetPlatforms(testDemoContext context)
        {
            List <Platform> platforms = new List <Platform>()
            {
                new Platform
                {
                    uniqueName = "Platform 1",
                    wells      = new List <Well>(context.wells.Take(1))
                }
            };

            return(platforms);
        }
示例#2
0
        public static List <Dashboard> GetDashboards(testDemoContext context)
        {
            List <Dashboard> dashboards = new List <Dashboard>()
            {
                new Dashboard
                {
                    success    = true,
                    chartDonut = new List <ChartDashboard>(context.chartDashboards.Take(1)),
                    chartBar   = new List <ChartDashboard>(context.chartDashboards.Take(1)),
                    tableUsers = new List <TableUser>(context.tableUsers.Take(1))
                }
            };

            return(dashboards);
        }