コード例 #1
0
        public Statistic(DBWrapper.Entities.Statistic statistic)
        {
            StatisticId = statistic.StatisticId;
            Mark        = statistic.Mark;
            RightTasks  = statistic.RightTasks;
            UserId      = statistic.UserData == null ? 270 : statistic.UserData.UserId;
            var db = new DbWrapper.DbWrapper();

            if (statistic.TestSet != null)
            {
                TestSet = new TestSet(db.GetTestSetById(statistic.TestSet.TestSetId));
            }
        }
コード例 #2
0
 public AutoTestingService()
 {
     _dbWrapper = new DbWrapper.DbWrapper();
 }