public Training(long? pId, long? orgId, long? attemptId, AttemptStatus? attemptStatus, float? totalPoints) { this.PackageId = pId; this.OrganizationId = orgId; this.AttemptId = attemptId; this.AttemptStatusProp = attemptStatus; this.TotalPoints = totalPoints; }
public Training(long? pID, string packageFileName, long? orgID, string orgTitle, long? attemptID, DateTime? uploadDateTime, AttemptStatus? attemptStatus, float? totalPoints) { this.PackageID = pID; this.PackageFileName = packageFileName; this.OrganizationID = orgID; this.OrganizationTitle = orgTitle; this.AttemptID = attemptID; this.UploadDateTime = uploadDateTime; this.AttemptStatusProp = attemptStatus; this.TotalPoints = totalPoints; }
AttemptStatus?NonELearningStatus(AttemptStatus state) { if (Assignment.IsNonELearning) { return(state); } else { return(null); } }
public AttemptResult(long attemptId, User user, Theme theme, CompletionStatus completionStatus, AttemptStatus attemptStatus, SuccessStatus successStatus, DateTime? startTime, float? scaledScore) { this.AttemptId = attemptId; this.User = user; this.Theme = theme; this.CompletionStatus = completionStatus; this.AttemptStatus = attemptStatus; this.SuccessStatus = successStatus; this.StartTime = startTime; this.Score = new Score(scaledScore); }
public AttemptResult(long attemptId, User user, Topic topic, CompletionStatus completionStatus, AttemptStatus attemptStatus, SuccessStatus successStatus, DateTime?startTime, float?scaledScore) { this.AttemptId = attemptId; this.User = user; this.Topic = topic; this.CompletionStatus = completionStatus; this.AttemptStatus = attemptStatus; this.SuccessStatus = successStatus; this.StartTime = startTime; this.Score = new Score(scaledScore); }
public AttemptResult(long attemptId, User user, CurriculumChapterTopic curriculumChapterTopic, TopicTypeEnum topicType, CompletionStatus completionStatus, AttemptStatus attemptStatus, SuccessStatus successStatus, DateTime? startTime, DateTime? finishTime, int iudicoCourseRef, float? minScore, float? maxScore, float? rawScore, float? scaledScore) { this.AttemptId = attemptId; this.User = user; this.CurriculumChapterTopic = curriculumChapterTopic; this.TopicType = topicType; this.CompletionStatus = completionStatus; this.AttemptStatus = attemptStatus; this.SuccessStatus = successStatus; this.StartTime = startTime; this.FinishTime = finishTime; this.IudicoCourseRef = iudicoCourseRef; this.Score = new Score(minScore, maxScore, rawScore, scaledScore); }
public void CreateAttemptResultWithParameters() { const long AttemptId = 12312; const int IudicoCourseRef = 23; var user = new User(); var curriculumChapterTopic = new CurriculumChapterTopic(); const TopicTypeEnum TopicTypeEnum = TopicTypeEnum.TestWithoutCourse; const CompletionStatus CompletionStatus = CompletionStatus.Incomplete; const AttemptStatus AttemptStatus = AttemptStatus.Completed; const SuccessStatus SuccessStatus = SuccessStatus.Passed; DateTime? startTime = new DateTime(32478932); DateTime? finishTime = new DateTime(189041324); float? score = 0.22f; float? minScore = 0; float? maxScore = 50; float? rawScore = 11; var attemptResult = new AttemptResult( AttemptId, user, curriculumChapterTopic, TopicTypeEnum, CompletionStatus, AttemptStatus, SuccessStatus, startTime, finishTime, IudicoCourseRef, minScore, maxScore, rawScore, score); Assert.AreEqual(AttemptId, attemptResult.AttemptId); Assert.AreEqual(user, attemptResult.User); Assert.AreEqual(curriculumChapterTopic, attemptResult.CurriculumChapterTopic); Assert.AreEqual(TopicTypeEnum, attemptResult.TopicType); Assert.AreEqual(CompletionStatus, attemptResult.CompletionStatus); Assert.AreEqual(AttemptStatus, attemptResult.AttemptStatus); Assert.AreEqual(SuccessStatus, attemptResult.SuccessStatus); Assert.AreEqual(startTime, attemptResult.StartTime); Assert.AreEqual(finishTime, attemptResult.FinishTime); Assert.AreEqual(score, attemptResult.Score.ScaledScore); }
public AttemptResult(long attemptId, User user, CurriculumChapterTopic curriculumChapterTopic, TopicTypeEnum topicType, CompletionStatus completionStatus, AttemptStatus attemptStatus, SuccessStatus successStatus, DateTime?startTime, DateTime?finishTime, int iudicoCourseRef, float?minScore, float?maxScore, float?rawScore, float?scaledScore) { this.AttemptId = attemptId; this.User = user; this.CurriculumChapterTopic = curriculumChapterTopic; this.TopicType = topicType; this.CompletionStatus = completionStatus; this.AttemptStatus = attemptStatus; this.SuccessStatus = successStatus; this.StartTime = startTime; this.FinishTime = finishTime; this.IudicoCourseRef = iudicoCourseRef; this.Score = new Score(minScore, maxScore, rawScore, scaledScore); }