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)); } }
public AutoTestingService() { _dbWrapper = new DbWrapper.DbWrapper(); }