private void FillStatistics(int counter)
        {
            var stat = new NDoctorStatisticsTester(this.Session);

            for (int i = 0; i < counter; i++)
            {
                stat.Add(new ApplicationStatistics()
                {
                    ExecutionTime        = 10,
                    IsPossibleBottleneck = false,
                    Message        = string.Empty,
                    MethodName     = "method",
                    TargetTypeName = "target",
                    Threshold      = 1000,
                    TimeStamp      = DateTime.Now,
                });
            }
            stat.Flush();
        }
        private void FillStatisticsWithRandomBottlenecks(int counter)
        {
            var stat   = new NDoctorStatisticsTester(this.Session);
            var random = new Random(150);

            for (int i = 0; i < counter; i++)
            {
                stat.Add(new ApplicationStatistics()
                {
                    ExecutionTime        = random.Next(5, 10),
                    IsPossibleBottleneck = (random.Next(0, 1) == 0),
                    Message        = string.Empty,
                    MethodName     = Names[random.Next(0, 2)],
                    TargetTypeName = Names[random.Next(0, 2)],
                    Threshold      = 10,
                    TimeStamp      = DateTime.Now,
                });
            }
            stat.Flush();
        }
        private void FillStatisticsOnTime()
        {
            var counter = 365 * 3;//Statistics on three years
            var stat    = new NDoctorStatisticsTester(this.Session);
            var random  = new Random(150);

            var time = DateTime.Now.AddYears(-3);

            for (int i = 0; i < counter; i++)
            {
                stat.Add(new ApplicationStatistics()
                {
                    ExecutionTime        = random.Next(5, 10),
                    IsPossibleBottleneck = (random.Next(0, 1) == 0),
                    Message        = string.Empty,
                    MethodName     = Names[random.Next(0, 2)],
                    TargetTypeName = Names[random.Next(0, 2)],
                    Threshold      = 10,
                    TimeStamp      = time.AddDays(1),
                });
            }
            stat.Flush();
        }