public void Compute(IUser user)
        {
            var infos = new DatabaseAccess.DatabaseManager()
                        .GetDatabase()
                        .GetCollection <SVNInfo>(typeof(SVNInfo).Name)
                        .FindAll()
                        .OrderBy(o => o.Date)
                        .ToList();

            var      count       = 0;
            DateTime initialTime = infos[0].Date.ToUniversalTime();

            for (int i = 1; i < infos.Count; i++)
            {
                var ts = infos[i + 1].Date - initialTime;
                if (ts.Days >= 1 && ts.Days < 2)
                {
                    count++;
                }
                else if (!(ts.Days < 1))
                {
                    count = 0;
                }
                else
                {
                    continue;
                }
                initialTime = infos[i].Date;
                if (count >= 5)
                {
                    Gained = true;
                    break;
                }
            }
        }
        public void Compute(IUser user)
        {
            var infos = new DatabaseAccess.DatabaseManager()
                .GetDatabase()
                .GetCollection<SVNInfo>(typeof(SVNInfo).Name)
                .FindAll()                                
                .OrderBy(o => o.Date)
                .ToList();

            var count = 0;
            DateTime initialTime = infos[0].Date.ToUniversalTime();
            for (int i = 1; i < infos.Count; i++)
            {
                var ts = infos[i + 1].Date - initialTime;
                if (ts.Days >= 1 && ts.Days < 2)
                {
                    count++;
                }
                else if (!(ts.Days < 1))
                {
                    count = 0;
                }
                else
                {
                    continue;
                }
                initialTime = infos[i].Date;
                if (count >= 5)
                {
                    Gained = true;
                    break;
                }
            }
            
        }