コード例 #1
0
        private void TestMethode()
        {
            users.Add(new User("no", "no", 0, false, 0));
            users.Add(new User("JK123", "jancoow", 5, true, 100));
            users.Add(new User("TOM", "tommie", 80, false, 77, true));

            Random  r       = new Random();
            Session session = new Session(1, "100");

            for (int i = 0; i < 20; i++)
            {
                session.AddMeasurement(new Measurement(r.Next(100, 200), r.Next(60, 100), r.Next(100, 150), r.Next(0, 100), i, r.Next(100), r.Next(100), r.Next(100), i, r.Next(100)));
            }
            users.ElementAt(1).tests.Add(session);

            Session session2 = new Session(2, "100");

            for (int i = 0; i < 50; i++)
            {
                session2.AddMeasurement(new Measurement(r.Next(100, 200), r.Next(60, 100), r.Next(100, 150), r.Next(0, 100), i, r.Next(100), r.Next(100), r.Next(100), i, r.Next(100)));
            }
            users.ElementAt(1).tests.Add(session2);
        }