Exemple #1
0
        private ArubaTask[] InitializeTasks()
        {
            var tasks = new ArubaTask[EntitiesCount];

            for (int i = 0; i < EntitiesCount; i++)
            {
                var task = new ArubaTask
                {
                    Id       = i / 2,
                    Name     = i % 2 == 0 ? "Foo" : "Bar",
                    Deleted  = i % 3 == 0,
                    TaskInfo = new ArubaTaskInfo
                    {
                        Failed       = i,
                        Improvements = i * 2,
                        Investigates = i % 4,
                        Passed       = i % 2,
                    },
                };
                tasks[i] = task;
            }
            return(tasks);
        }
Exemple #2
0
 private ArubaTask[] InitializeTasks()
 {
     var tasks = new ArubaTask[EntitiesCount];
     for (int i = 0; i < EntitiesCount; i++)
     {
         var task = new ArubaTask
         {
             Id = i / 2,
             Name = i % 2 == 0 ? "Foo" : "Bar",
             Deleted = i % 3 == 0,
             TaskInfo = new ArubaTaskInfo
             {
                 Failed = i,
                 Improvements = i * 2,
                 Investigates = i % 4,
                 Passed = i % 2,
             },
         };
         tasks[i] = task;
     }
     return tasks;
 }