public CurrentTopicTestResultsModel(int curriculumChapterTopicId, TopicTypeEnum topicType, int groupId, ILmsService lmsService) { this.group = lmsService.FindService<IUserService>().GetGroup(groupId); var currenUser = lmsService.FindService<IUserService>().GetCurrentUser(); var curriculumChapterTopic = lmsService.FindService<ICurriculumService>().GetCurriculumChapterTopicById(curriculumChapterTopicId); if (currenUser != null & curriculumChapterTopic != null) { var attemptResults = lmsService.FindService<ITestingService>().GetResults(currenUser, curriculumChapterTopic, topicType).ToList(); if (attemptResults.Any()) { // hotfix: added checking of Course id this.attempt = attemptResults.FirstOrDefault(x => x.CurriculumChapterTopic.Topic.TestCourseRef == x.IudicoCourseRef); if (this.attempt != null) { this.courseInfo = lmsService.FindService<ICourseService>().GetCourseInfo(this.attempt.IudicoCourseRef); this.userAnswers = lmsService.FindService<ITestingService>().GetAnswers(this.attempt); this.hasNoData = this.userAnswers == null; } } else this.hasNoData = true; } else this.hasNoData = true; }
public void UpdateUserAverage() { tests = UserManagementTests.Update(); var user = new User { Username = "******", Email = "*****@*****.**", Password = "******" }; this.tests.Storage.CreateUser(user); var attemptResult = new AttemptResult { AttemptId = 1, AttemptStatus = AttemptStatus.Completed, CompletionStatus = CompletionStatus.Completed, FinishTime = DateTime.Now, StartTime = DateTime.Now, Score = new Score(0, 50, 45, 0.9F), SuccessStatus = SuccessStatus.Passed, TopicType = TopicTypeEnum.Test, User = this.tests.Storage.GetUser(user.Username) }; this.tests.Storage.UpdateUserAverage(attemptResult); var testUser = this.tests.Storage.GetUser(user.Username); Assert.IsTrue(testUser.TestsTotal == 1); Assert.IsTrue(testUser.TestsSum == 90); this.tests.Storage.DeleteUser(u => u.Username == "name1"); }
/// <summary> /// constructor that get all information from Testing System /// </summary> /// <param name="attemptId">id of attempt to show</param> /// <param name="attList">list of attempts from Session Context</param> /// <param name="lmsService">ILmsService for conection to Testing System</param> public TopicTestResultsModel(long attemptId, IEnumerable<AttemptResult> attList, int groupId, ILmsService lmsService) { if (attemptId != -1) { this.group = lmsService.FindService<IUserService>().GetGroup(groupId); // hotfix: added checking of Course id this.attempt = attList.FirstOrDefault( c => c.AttemptId == attemptId && c.CurriculumChapterTopic.Topic.TestCourseRef == c.IudicoCourseRef); if (this.attempt != null) { this.userAnswers = lmsService.FindService<ITestingService>().GetAnswers(this.attempt); this.courseInfo = lmsService.FindService<ICourseService>().GetCourseInfo(this.attempt.IudicoCourseRef); this.hasNoData = this.userAnswers == null; } else { this.hasNoData = true; } } else this.hasNoData = true; }
public void CalculateSpecializedResultTest() { User usr = new User() { Username = "******" }; Topic thm = new Topic() { Name = "Topic One" }; AttemptResult AR = new AttemptResult(1, usr, thm, CompletionStatus.Completed, AttemptStatus.Completed, SuccessStatus.Passed, DateTime.Now, 0.5f); TopicResult topicRes = new TopicResult(usr, thm); List<AttemptResult> ARL = new List<AttemptResult>(); ARL.Add(AR); topicRes.AttemptResults = ARL; topicRes.GetTopicResultScore(); DisciplineResult currRes = new DisciplineResult(); currRes.TopicResult.Add(topicRes); Discipline curr = null; currRes.CalculateSumAndMax(usr, curr); SpecializedResult target = new SpecializedResult(); target.DisciplineResult.Add(currRes); target.CalculateSpecializedResult(usr); double? ExpectedSum = 50.0; double? ExpectedMax = 100.0; double? ExpectedPercent = 50.0; char ExpextedECTS = 'F'; Assert.AreEqual(ExpectedSum, target.Sum); Assert.AreEqual(ExpectedMax, target.Max); Assert.AreEqual(ExpectedPercent, target.Percent); Assert.AreEqual(ExpextedECTS, target.ECTS); }
public CurrentTopicTestResultsModel(int topicId, ILmsService lmsService) { User currenUser = lmsService.FindService<IUserService>().GetCurrentUser(); Topic topic = lmsService.FindService<ICurriculumService>().GetTopic(topicId); if (currenUser != null & topic != null) { IEnumerable<AttemptResult> attemptResults = lmsService.FindService<ITestingService>().GetResults(currenUser, topic); if (attemptResults != null & attemptResults.Count() >= 1) { _Attempt = attemptResults.Last(); if (_Attempt != null) { _UserAnswers = lmsService.FindService<ITestingService>().GetAnswers(_Attempt); if (_UserAnswers != null) _NoData = false; else _NoData = true; } } else _NoData = true; } else _NoData = true; }
public void CalculateSpecializedResultTest() { IUDICO.Common.Models.User usr = new IUDICO.Common.Models.User() { Username = "******" }; IUDICO.Common.Models.Theme thm = new IUDICO.Common.Models.Theme() { Name = "Theme One" }; IUDICO.Common.Models.Shared.Statistics.AttemptResult AR = new IUDICO.Common.Models.Shared.Statistics.AttemptResult(1, usr, thm, IUDICO.Common.Models.Shared.Statistics.CompletionStatus.Completed, IUDICO.Common.Models.Shared.Statistics.AttemptStatus.Completed, IUDICO.Common.Models.Shared.Statistics.SuccessStatus.Passed, DateTime.Now, 0.5f); ThemeResult themeRes = new ThemeResult(usr, thm); List<AttemptResult> ARL = new List<AttemptResult>(); ARL.Add(AR); themeRes.AttemptResults = ARL; themeRes.GetThemeResultScore(); CurriculumResult currRes = new CurriculumResult(); currRes.ThemeResult.Add(themeRes); Curriculum curr = null; currRes.CalculateSumAndMax(usr, curr); SpecializedResult target = new SpecializedResult(); target.CurriculumResult.Add(currRes); target.CalculateSpecializedResult(usr); double? ExpectedSum = 50.0; double? ExpectedMax = 100.0; double? ExpectedPercent = 50.0; char ExpextedECTS = 'F'; Assert.AreEqual(ExpectedSum, target.Sum); Assert.AreEqual(ExpectedMax, target.Max); Assert.AreEqual(ExpectedPercent, target.Percent); Assert.AreEqual(ExpextedECTS, target.ECTS); }
public IEnumerable<AnswerResult> GetAnswers(AttemptResult attempt) { List<AnswerResult> results = new List<AnswerResult>(); results.Add(new AnswerResult(0, "Test 1", 0, attempt, 0, "100", InteractionType.Numeric, null)); results.Add(new AnswerResult(0, "Test 2", 1, attempt, null, "0", InteractionType.TrueFalse, null)); results.Add(new AnswerResult(0, "Test 3", 2, attempt, 10, "5", InteractionType.Numeric, null)); results.Add(new AnswerResult(0, "Test 4", 3, attempt, 1, "1", InteractionType.TrueFalse, null)); results.Add(new AnswerResult(0, "Test 5", 4, attempt, null, "0", InteractionType.TrueFalse, 1)); return results; }
public IEnumerable<AttemptResult> GetAllAttempts() { List<AttemptResult> result = new List<AttemptResult>(); LearningStoreJob job = LStore.CreateJob(); RequestAllAttempts(job); DataTable dataTable = job.Execute<DataTable>(); foreach (DataRow dataRow in dataTable.AsEnumerable()) { AttemptItemIdentifier attemptItemId; LStoreHelper.CastNonNull(dataRow[Schema.AllAttemptsResults.AttemptId], out attemptItemId); long attemptId = attemptItemId.GetKey(); String userKey; LStoreHelper.CastNonNull(dataRow[Schema.AllAttemptsResults.UserItemKey], out userKey); User user = UserService.GetUsers().Single(curr => curr.Id.ToString() == userKey); if (user == null) { throw new NoNullAllowedException("Error while getting user with id = " + userKey); } Int32 themeId; LStoreHelper.CastNonNull(dataRow[Schema.AllAttemptsResults.ThemeId], out themeId); Theme theme = CurriculumService.GetTheme(themeId); if (theme == null) { throw new NoNullAllowedException("Error while getting theme with id = " + themeId); } Microsoft.LearningComponents.CompletionStatus completionStatus; LStoreHelper.CastNonNull(dataRow[Schema.AllAttemptsResults.CompletionStatus], out completionStatus); IUDICO.Common.Models.Shared.Statistics.CompletionStatus iudicoCompletionStatus = (IUDICO.Common.Models.Shared.Statistics.CompletionStatus)completionStatus; Microsoft.LearningComponents.AttemptStatus attemptStatus; LStoreHelper.CastNonNull(dataRow[Schema.AllAttemptsResults.AttemptStatus], out attemptStatus); IUDICO.Common.Models.Shared.Statistics.AttemptStatus iudicoAttemptStatus = (IUDICO.Common.Models.Shared.Statistics.AttemptStatus)attemptStatus; Microsoft.LearningComponents.SuccessStatus successStatus; LStoreHelper.CastNonNull(dataRow[Schema.AllAttemptsResults.SuccessStatus], out successStatus); IUDICO.Common.Models.Shared.Statistics.SuccessStatus iudicoSuccessStatus = (IUDICO.Common.Models.Shared.Statistics.SuccessStatus)successStatus; DateTime? startTime; LStoreHelper.Cast(dataRow[Schema.AllAttemptsResults.StartedTimestamp], out startTime); float? scaledScore; LStoreHelper.Cast<float>(dataRow[Schema.AllAttemptsResults.Score], out scaledScore); // Create AttemptResult object AttemptResult attemptResult = new AttemptResult(attemptId, user, theme, iudicoCompletionStatus, iudicoAttemptStatus, iudicoSuccessStatus, startTime, scaledScore); result.Add(attemptResult); } return result; }
public void CreateAnswerResultWithParameters() { const long ActivityAttemptId = 2349; const long ActivityPackageId = 83294; const string ActivityTitle = "Some Activity"; long? interactionId = 12382; const CompletionStatus CompletionStatus = CompletionStatus.NotAttempted; const SuccessStatus SuccessStatus = SuccessStatus.Failed; var attemptResult = new AttemptResult(); const string LearnerResponse = "C"; const string CorrectResponse = "-328"; InteractionType? learnerResponseType = Common.Models.Shared.Statistics.InteractionType.Numeric; float? scaledScore = 0.58f; float? minScore = 0; float? maxScore = 50; float? rawScore = 29; string primaryResourceFromManifest = "0.html"; var answerResult = new AnswerResult( ActivityAttemptId, ActivityPackageId, ActivityTitle, interactionId, CompletionStatus, SuccessStatus, attemptResult, LearnerResponse, CorrectResponse, learnerResponseType, minScore, maxScore, rawScore, scaledScore, primaryResourceFromManifest); Assert.AreEqual(ActivityAttemptId, answerResult.ActivityAttemptId); Assert.AreEqual(ActivityPackageId, answerResult.ActivityPackageId); Assert.AreEqual(ActivityTitle, answerResult.ActivityTitle); Assert.AreEqual(interactionId, answerResult.InteractionId); Assert.AreEqual(CompletionStatus, answerResult.CompletionStatus); Assert.AreEqual(SuccessStatus, answerResult.SuccessStatus); Assert.AreSame(attemptResult, answerResult.AttemptResult); Assert.AreEqual(LearnerResponse, answerResult.LearnerResponse); Assert.AreEqual(CorrectResponse, answerResult.CorrectResponse); Assert.AreEqual(learnerResponseType, answerResult.LearnerResponseType); Assert.AreEqual(scaledScore, answerResult.ScaledScore); }
public void CreateAttemptResultWithDefaultConstructor() { var attemptResult = new AttemptResult(); Assert.AreEqual(0, attemptResult.AttemptId); Assert.AreEqual(AttemptStatus.Active, attemptResult.AttemptStatus); Assert.AreEqual(CompletionStatus.Unknown, attemptResult.CompletionStatus); Assert.AreEqual(null, attemptResult.CurriculumChapterTopic); Assert.AreEqual(null, attemptResult.FinishTime); Assert.AreEqual(null, attemptResult.Score); Assert.AreEqual(null, attemptResult.StartTime); Assert.AreEqual(SuccessStatus.Unknown, attemptResult.SuccessStatus); Assert.AreEqual(0, (int)attemptResult.TopicType); Assert.AreEqual(null, attemptResult.User); }
// TODO: this constructor was added to support some fake data instanсiation, so remove in near future! public AnswerResult(long activityAttempId, string activityTitle, long?interactionId, AttemptResult attempResult, object learnerResponse, string correctResponse, InteractionType?learnerResponseType, float?scaledScore) { this.ActivityAttemptId = activityAttempId; //this.ActivityPackageId = activityPackageId; this.ActivityTitle = activityTitle; this.InteractionId = interactionId; //this.CompletionStatus = completionStatus; //this.SuccessStatus = successStatus; this.AttemptResult = attempResult; this.LearnerResponse = learnerResponse; this.CorrectResponse = correctResponse; this.LearnerResponseType = learnerResponseType; this.ScaledScore = scaledScore; }
public AnswerResult(long activityAttempId, long activityPackageId, string activityTitle, long? interactionId, CompletionStatus completionStatus, SuccessStatus? successStatus, AttemptResult attempResult, object learnerResponse, string correctResponse, InteractionType? learnerResponseType, float? scaledScore) { this.ActivityAttemptId = activityAttempId; this.ActivityPackageId = activityPackageId; this.ActivityTitle = activityTitle; this.InteractionId = interactionId; this.CompletionStatus = completionStatus; this.SuccessStatus = successStatus; this.AttemptResult = attempResult; this.LearnerResponse = learnerResponse; this.CorrectResponse = correctResponse; this.LearnerResponseType = learnerResponseType; this.ScaledScore = 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 void CalculateSpecializedResultTest() { User usr = new User() { Username = "******" }; Theme thm = new Theme() { Name = "Theme One" }; IUDICO.Common.Models.Shared.Statistics.AttemptResult AR = new IUDICO.Common.Models.Shared.Statistics.AttemptResult(1, usr, thm, IUDICO.Common.Models.Shared.Statistics.CompletionStatus.Completed, IUDICO.Common.Models.Shared.Statistics.AttemptStatus.Completed, IUDICO.Common.Models.Shared.Statistics.SuccessStatus.Passed, DateTime.Now, 0.5f); ThemeResult themeRes = new ThemeResult(usr, thm); List <AttemptResult> ARL = new List <AttemptResult>(); ARL.Add(AR); themeRes.AttemptResults = ARL; themeRes.GetThemeResultScore(); CurriculumResult currRes = new CurriculumResult(); currRes.ThemeResult.Add(themeRes); Curriculum curr = null; currRes.CalculateSumAndMax(usr, curr); SpecializedResult target = new SpecializedResult(); target.CurriculumResult.Add(currRes); target.CalculateSpecializedResult(usr); double?ExpectedSum = 50.0; double?ExpectedMax = 100.0; double?ExpectedPercent = 50.0; char ExpextedECTS = 'F'; Assert.AreEqual(ExpectedSum, target.Sum); Assert.AreEqual(ExpectedMax, target.Max); Assert.AreEqual(ExpectedPercent, target.Percent); Assert.AreEqual(ExpextedECTS, target.ECTS); }
private TopicInfoModel() { List<AttemptResult> testAttemptList = new List<AttemptResult>(); List<User> testUserList = new List<User>(); List<Topic> testTopicList = new List<Topic>(); float? attemptScore; AttemptResult testAttempt; User testUser1 = new User(); testUser1.Name = "user1"; Topic testTopic1 = new Topic(); testTopic1.Name = "topic1"; User testUser2 = new User(); testUser2.Name = "user2"; Topic testTopic2 = new Topic(); testTopic2.Name = "topic2"; attemptScore = (float?)0.55; testAttempt = new AttemptResult(1, testUser1, testTopic1, new CompletionStatus(), new AttemptStatus(), new SuccessStatus(), DateTime.Now, attemptScore); testAttemptList.Add(testAttempt); attemptScore = (float?)0.65; testAttempt = new AttemptResult(1, testUser1, testTopic2, new CompletionStatus(), new AttemptStatus(), new SuccessStatus(), null, attemptScore); testAttemptList.Add(testAttempt); attemptScore = (float?)0.85; testAttempt = new AttemptResult(1, testUser2, testTopic1, new CompletionStatus(), new AttemptStatus(), new SuccessStatus(), DateTime.Now, attemptScore); testAttemptList.Add(testAttempt); attemptScore = (float?)0.95; testAttempt = new AttemptResult(1, testUser2, testTopic2, new CompletionStatus(), new AttemptStatus(), new SuccessStatus(), null, attemptScore); testAttemptList.Add(testAttempt); testUserList.Add(testUser1); testTopicList.Add(testTopic1); testUserList.Add(testUser2); testTopicList.Add(testTopic2); this._LastAttempts = testAttemptList; this.SelectGroupStudents = testUserList; this.SelectDisciplineTopics = testTopicList; }
private ThemeInfoModel() { List<AttemptResult> testAttemptList = new List<AttemptResult>(); List<User> testUserList = new List<User>(); List<Theme> testThemeList = new List<Theme>(); float? attemptScore; AttemptResult testAttempt; User testUser1 = new User(); testUser1.Name = "user1"; Theme testTheme1 = new Theme(); testTheme1.Name = "theme1"; User testUser2 = new User(); testUser2.Name = "user2"; Theme testTheme2 = new Theme(); testTheme2.Name = "theme2"; attemptScore = (float?)0.55; testAttempt = new AttemptResult(1, testUser1, testTheme1, new CompletionStatus(), new AttemptStatus(), new SuccessStatus(), DateTime.Now, attemptScore); testAttemptList.Add(testAttempt); attemptScore = (float?)0.65; testAttempt = new AttemptResult(1, testUser1, testTheme2, new CompletionStatus(), new AttemptStatus(), new SuccessStatus(), null, attemptScore); testAttemptList.Add(testAttempt); attemptScore = (float?)0.85; testAttempt = new AttemptResult(1, testUser2, testTheme1, new CompletionStatus(), new AttemptStatus(), new SuccessStatus(), DateTime.Now, attemptScore); testAttemptList.Add(testAttempt); attemptScore = (float?)0.95; testAttempt = new AttemptResult(1, testUser2, testTheme2, new CompletionStatus(), new AttemptStatus(), new SuccessStatus(), null, attemptScore); testAttemptList.Add(testAttempt); testUserList.Add(testUser1); testThemeList.Add(testTheme1); testUserList.Add(testUser2); testThemeList.Add(testTheme2); this._LastAttempts = testAttemptList; this.SelectGroupStudents = testUserList; this.SelectCurriculumThemes = testThemeList; }
/// <summary> /// constructor that get all information from Testing System /// </summary> /// <param name="attemptId">id of attempt to show</param> /// <param name="attList">list of attempts from Session Context</param> /// <param name="lmsService">ILmsService for conection to Testing System</param> public TopicTestResultsModel(long attemptId, IEnumerable<AttemptResult> attList, ILmsService lmsService) { if (attemptId != -1) { Attempt = attList.First(c => c.AttemptId == attemptId); if (Attempt != null) { UserAnswers = lmsService.FindService<ITestingService>().GetAnswers(Attempt); if (UserAnswers != null) _NoData = false; else _NoData = true; } else { _NoData = true; } } else _NoData = true; }
public IEnumerable<AnswerResult> GetAnswers(AttemptResult attemptResult) { LearningStoreJob job = this.LStore.CreateJob(); var attemptId = new AttemptItemIdentifier(attemptResult.AttemptId); this.RequestInteractionResultsByAttempt(job, attemptId); var dataTable = job.Execute<DataTable>(); foreach (DataRow dataRow in dataTable.AsEnumerable()) { ActivityAttemptItemIdentifier activityAttemptItemId; LStoreHelper.CastNonNull( dataRow[Schema.InteractionResultsByAttempt.ActivityAttemptId], out activityAttemptItemId); long activityAttemptId = activityAttemptItemId.GetKey(); ActivityPackageItemIdentifier activityPackageItemId; LStoreHelper.CastNonNull( dataRow[Schema.InteractionResultsByAttempt.ActivityPackageId], out activityPackageItemId); long activityPackageId = activityPackageItemId.GetKey(); string activityTitle; LStoreHelper.CastNonNull(dataRow[Schema.InteractionResultsByAttempt.ActivityTitle], out activityTitle); InteractionItemIdentifier interactionItemId; LStoreHelper.Cast(dataRow[Schema.InteractionResultsByAttempt.InteractionId], out interactionItemId); long? interactionId = null; if (interactionItemId != null) { interactionId = interactionItemId.GetKey(); } CompletionStatus completionStatus; LStoreHelper.CastNonNull( dataRow[Schema.InteractionResultsByAttempt.CompletionStatus], out completionStatus); var iudicoCompletionStatus = (Common.Models.Shared.Statistics.CompletionStatus)completionStatus; SuccessStatus? successStatus; LStoreHelper.Cast(dataRow[Schema.InteractionResultsByAttempt.SuccessStatus], out successStatus); var iudicoSuccessStatus = (Common.Models.Shared.Statistics.SuccessStatus?)successStatus; bool? learnerResponseBool; LStoreHelper.Cast( dataRow[Schema.InteractionResultsByAttempt.LearnerResponseBool], out learnerResponseBool); string learnerResponseString; LStoreHelper.Cast( dataRow[Schema.InteractionResultsByAttempt.LearnerResponseString], out learnerResponseString); double? learnerResponseNumeric; LStoreHelper.Cast( dataRow[Schema.InteractionResultsByAttempt.LearnerResponseNumeric], out learnerResponseNumeric); object learnerResponse = null; if (learnerResponseBool != null) { learnerResponse = learnerResponseBool; } if (learnerResponseString != null) { learnerResponse = learnerResponseString; } if (learnerResponseNumeric != null) { learnerResponse = learnerResponseNumeric; } string correctResponse; LStoreHelper.Cast(dataRow[Schema.InteractionResultsByAttempt.CorrectResponse], out correctResponse); InteractionType? interactionType; LStoreHelper.Cast(dataRow[Schema.InteractionResultsByAttempt.InteractionType], out interactionType); Common.Models.Shared.Statistics.InteractionType? learnerResponseType = null; if (interactionType != null) { learnerResponseType = (Common.Models.Shared.Statistics.InteractionType)interactionType; } float? minScore; LStoreHelper.Cast(dataRow[Schema.InteractionResultsByAttempt.MinScore], out minScore); float? maxScore; LStoreHelper.Cast(dataRow[Schema.InteractionResultsByAttempt.MaxScore], out maxScore); float? rawScore; LStoreHelper.Cast(dataRow[Schema.InteractionResultsByAttempt.RawScore], out rawScore); float? scaledScore; LStoreHelper.Cast(dataRow[Schema.InteractionResultsByAttempt.ScaledScore], out scaledScore); string primaryResourceFromManifest; LStoreHelper.Cast(dataRow[Schema.InteractionResultsByAttempt.PrimaryResourceFromManifest], out primaryResourceFromManifest); // Create AnswerResult object var answerResult = new AnswerResult( activityAttemptId, activityPackageId, activityTitle, interactionId, iudicoCompletionStatus, iudicoSuccessStatus, attemptResult, learnerResponse, correctResponse, learnerResponseType, minScore, maxScore, rawScore, scaledScore, primaryResourceFromManifest); yield return answerResult; } }
public IEnumerable<AnswerResult> GetAnswers(AttemptResult attempt) { return this.MlcProxy.GetAnswers(attempt); }
/// <summary> /// Performs mapping and setting appropriate fields of <paramref name="attemptResult"/> with given values. /// </summary> /// <param name="rawValue"><see cref="object"/> representing raw value retrieved from LearningStore (DB).</param> /// <param name="fieldName"><see cref="string"/> value representing name of the field (column).</param> /// <param name="attemptResult"><see cref="AttemptResult"/> value passed by reference. Parsed value is being assigned to it's corresponding property.</param> protected void ParseAttemptResultField(object rawValue, string fieldName, ref AttemptResult attemptResult) { switch (fieldName) { case Schema.AllAttemptsResults.AttemptId: AttemptItemIdentifier attemptItemId; LStoreHelper.CastNonNull(rawValue, out attemptItemId); attemptResult.AttemptId = attemptItemId.GetKey(); break; case Schema.AllAttemptsResults.AttemptStatus: AttemptStatus attemptStatus; LStoreHelper.CastNonNull(rawValue, out attemptStatus); attemptResult.AttemptStatus = (Common.Models.Shared.Statistics.AttemptStatus)attemptStatus; break; case Schema.AllAttemptsResults.CompletionStatus: CompletionStatus completionStatus; LStoreHelper.CastNonNull(rawValue, out completionStatus); attemptResult.CompletionStatus = (Common.Models.Shared.Statistics.CompletionStatus)completionStatus; break; case Schema.AllAttemptsResults.CurriculumChapterTopicId: int curriculumChapterTopicId; LStoreHelper.CastNonNull(rawValue, out curriculumChapterTopicId); var curriculumChapterTopic = this.CurriculumService.GetCurriculumChapterTopicById(curriculumChapterTopicId); if (curriculumChapterTopic == null) { throw new NoNullAllowedException( "Error while getting curriculum-chapter-topic with id = " + curriculumChapterTopicId); } attemptResult.CurriculumChapterTopic = curriculumChapterTopic; break; case Schema.AllAttemptsResults.IudicoCourseRef: int courseId; LStoreHelper.CastNonNull(rawValue, out courseId); var course = this.CourseService.GetCourse(courseId); if (course == null) { throw new NoNullAllowedException( "Error while getting course with id = " + courseId); } attemptResult.IudicoCourseRef = courseId; break; case Schema.AllAttemptsResults.MinScore: { float? score; LStoreHelper.Cast(rawValue, out score); attemptResult.Score.MinScore = score; } break; case Schema.AllAttemptsResults.MaxScore: { float? score; LStoreHelper.Cast(rawValue, out score); attemptResult.Score.MaxScore = score; } break; case Schema.AllAttemptsResults.RawScore: { float? score; LStoreHelper.Cast(rawValue, out score); attemptResult.Score.RawScore = score; } break; case Schema.AllAttemptsResults.Score: { float? score; LStoreHelper.Cast(rawValue, out score); float? scaledScore = null; if (score != null) { scaledScore = score / 100; } attemptResult.Score.ScaledScore = scaledScore; } break; case Schema.AllAttemptsResults.StartedTimestamp: DateTime? startTime; LStoreHelper.Cast(rawValue, out startTime); attemptResult.StartTime = startTime; break; case Schema.AllAttemptsResults.FinishedTimestamp: DateTime? finishTime; LStoreHelper.Cast(rawValue, out finishTime); attemptResult.FinishTime = finishTime; break; case Schema.AllAttemptsResults.SuccessStatus: SuccessStatus successStatus; LStoreHelper.CastNonNull(rawValue, out successStatus); attemptResult.SuccessStatus = (Common.Models.Shared.Statistics.SuccessStatus)successStatus; break; case Schema.AllAttemptsResults.TopicType: int rawTopicType; LStoreHelper.CastNonNull(rawValue, out rawTopicType); attemptResult.TopicType = (TopicTypeEnum)rawTopicType; break; case Schema.AllAttemptsResults.UserItemKey: string userKey; LStoreHelper.CastNonNull(rawValue, out userKey); var user = this.UserService.GetUsers().SingleOrDefault(curr => curr.Id.ToString() == userKey); if (user == null) { throw new NoNullAllowedException("Error while getting user with id = " + userKey); } attemptResult.User = user; break; } }
public void UpdateUserAverage(AttemptResult attemptResult) { this.storage.UpdateUserAverage(attemptResult); }
public IEnumerable<AnswerResult> GetAnswers(AttemptResult attempt) { IEnumerable<AnswerResult> result = MlcProxy.GetAnswers(attempt); return result; }
public IEnumerable<AttemptResult> GetResults(User user, Topic topic) { List<AttemptResult> result = new List<AttemptResult>(); LearningStoreJob job = LStore.CreateJob(); RequestAttemptsByTopicAndUser(job, user.Id.ToString(), topic.Id); DataTable dataTable = job.Execute<DataTable>(); foreach (DataRow dataRow in dataTable.AsEnumerable()) { AttemptItemIdentifier attemptItemId; LStoreHelper.CastNonNull(dataRow[Schema.AttemptsResultsByThemeAndUser.AttemptId], out attemptItemId); long attemptId = attemptItemId.GetKey(); Microsoft.LearningComponents.CompletionStatus completionStatus; LStoreHelper.CastNonNull(dataRow[Schema.AttemptsResultsByThemeAndUser.CompletionStatus], out completionStatus); IUDICO.Common.Models.Shared.Statistics.CompletionStatus iudicoCompletionStatus = (IUDICO.Common.Models.Shared.Statistics.CompletionStatus)completionStatus; Microsoft.LearningComponents.AttemptStatus attemptStatus; LStoreHelper.CastNonNull(dataRow[Schema.AttemptsResultsByThemeAndUser.AttemptStatus], out attemptStatus); IUDICO.Common.Models.Shared.Statistics.AttemptStatus iudicoAttemptStatus = (IUDICO.Common.Models.Shared.Statistics.AttemptStatus)attemptStatus; Microsoft.LearningComponents.SuccessStatus successStatus; LStoreHelper.CastNonNull(dataRow[Schema.AttemptsResultsByThemeAndUser.SuccessStatus], out successStatus); IUDICO.Common.Models.Shared.Statistics.SuccessStatus iudicoSuccessStatus = (IUDICO.Common.Models.Shared.Statistics.SuccessStatus)successStatus; DateTime? startTime; LStoreHelper.Cast(dataRow[Schema.AttemptsResultsByThemeAndUser.StartedTimestamp], out startTime); DateTime? finishTime; LStoreHelper.Cast(dataRow[Schema.AllAttemptsResults.FinishedTimestamp], out finishTime); float? score; LStoreHelper.Cast<float>(dataRow[Schema.AttemptsResultsByThemeAndUser.Score], out score); float? scaledScore = null; if (score != null) { scaledScore = score / 100; } // Create AttemptResult object AttemptResult attemptResult = new AttemptResult(attemptId, user, topic, iudicoCompletionStatus, iudicoAttemptStatus, iudicoSuccessStatus, startTime, finishTime, scaledScore); result.Add(attemptResult); } return result; }
public static IEnumerable<AnswerResult> GetFakeAnswers(AttemptResult attempt) { List<AnswerResult> listOfAnswers = new List<AnswerResult>(); switch (attempt.User.Username) { //pmi-33 case "Остап Андрусів(08i301)": // 1 1 1 0 1 0 1 0 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Назар Врублевський(08i302)": // 1 1 1 1 1 0 1 1 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Адмайкін Максим(08i303)": // 0 1 0 0 1 0 1 1 0 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Михайло Тис(08i304)": // 1 1 1 0 1 0 1 0 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Оля Іванків(08i305)": // 1 1 0 0 1 0 1 1 0 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Юрій Ожирко(08i306)": // 1 1 1 1 1 0 1 0 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Тарас Бехта(08i307)": // 1 1 0 1 0 0 1 1 0 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Василь Бодак(08i308)": // 1 1 1 1 1 1 1 0 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Василь Багряк(08i309)": // 1 1 1 1 1 1 0 1 0 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Максим Гула(08i310)": // 1 0 0 0 1 0 1 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Назар Качмарик(08i311)": // 0 1 0 1 1 0 1 1 0 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Мирослав Голуб(08i312)": // 1 1 1 0 1 0 1 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Павло Мартиник(08i313)": // 1 1 1 1 0 1 1 1 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "08i314 08i314(08i314)": // 0 1 1 1 1 0 0 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "08i315 Горячий(08i315)": // 1 1 0 1 1 0 1 1 0 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Данило Савчак(08i316)": // 0 0 0 1 1 0 0 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Ярослав Пиріг(08i317)": // 1 1 1 1 1 0 1 0 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Ірина Харів(08i318)": // 0 1 1 1 1 0 1 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Ярослав Мота(08i319)": // 1 1 1 1 0 0 1 0 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "08i320 Федорович(08i320)": // 0 1 1 1 1 0 1 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; //pmi-32 case "Олег Булатовський(08i201)": // 1 1 1 0 1 0 1 0 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Василь Ванівський(08i202)": // 1 1 1 1 1 0 1 1 0 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Boзняк Максим(08i203)": // 0 1 1 0 1 0 1 0 0 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Юра Гой(08i204)": // 1 1 1 1 1 0 0 0 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Остап Демків(08i205)": // 1 1 0 0 1 0 1 1 0 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Юра Дерев`янко(08i206)": // 1 1 1 1 0 1 1 0 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Роман Дроботiй(08i207)": // 1 1 0 0 0 0 1 1 0 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Дубик Петро(08i208)": // 1 1 0 1 1 1 1 1 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Віталій Засадний(08i209)": // 1 0 1 1 1 1 0 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "08i210 Андрусишин(08i210)": // 0 0 0 0 1 0 1 1 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Тарас Кміть(08i211)": // 0 1 0 1 1 0 1 1 0 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Роман Коваль(08i212)": // 1 1 1 0 1 0 1 1 0 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Маріана Кушла(08i213)": // 1 1 1 1 0 1 1 0 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Юрій Ладанівський(08i214)": // 1 1 1 1 1 0 0 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Leskiv Andriy(08i215)": // 1 0 0 1 1 0 1 1 0 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Юра Лучків(08i216)": // 0 0 1 1 0 0 0 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Mamchur Andriy(08i217)": // 1 1 0 0 1 0 1 0 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Христина Мандибур(08i218)": // 0 1 0 1 0 0 1 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Андрiй Протасов(08i219)": // 0 1 1 1 0 1 1 0 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "08i220 08i220(08i220)": // 1 1 1 1 1 0 0 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Стадник Роман(08i221)": // 1 0 1 1 0 1 1 0 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Андрій Столбовой(08i222)": // 0 1 1 1 1 0 0 1 0 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Ігор Сторянський(08i223)": // 1 1 0 0 1 0 1 1 0 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Фатич Михайло(08i224)": // 0 1 0 1 1 0 1 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; //pmi-31 case "Роман Баїк(08i101)": // 1 1 1 0 1 1 1 0 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Катерина Бугай(08i102)": // 1 1 1 1 1 0 1 1 0 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Олексій Гелей(08i103)": // 1 1 1 0 1 1 1 1 0 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Карпунь Богдан(08i104)": // 1 1 1 1 1 0 1 1 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "08i105 08i105(08i105)": // 1 1 1 0 1 1 1 1 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Олександр Козачук(08i106)": // 1 1 1 1 0 1 1 0 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Аня Кітчак(08i107)": // 1 1 0 0 0 0 1 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Кравець Роман(08i108)": // 1 1 0 1 1 1 1 1 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Андрій Крупич(08i109)": // 1 0 1 1 1 1 1 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Літинський Ростислав(08i110)": // 1 1 1 1 1 0 1 1 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Христина Макар(08i111)": // 0 1 0 1 1 0 1 1 0 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Юрко Тимчук(08i112)": // 1 1 1 0 1 0 1 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Oleg Papirnyk(08i113)": // 1 1 1 1 0 1 1 1 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Віталій Нобіс(08i114)": // 1 1 1 1 1 0 1 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Taras Pelenyo(08i115)": // 1 0 1 1 1 0 1 1 0 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "08i116 08i116(08i116)": // 0 0 1 1 1 0 0 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Стадник Богдан(08i117)": // 1 1 1 1 1 0 1 0 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Andriy Pachva(08i118)": // 0 1 0 1 0 0 1 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "Фай Роман(08i119)": // 1 1 1 1 0 1 1 0 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Мар'яна Хлєбик(08i120)": // 1 1 1 1 1 0 0 1 1 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "08i121 08i121(08i121)": // 1 0 1 1 0 1 1 0 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Руслан Івать(08i122)": // 1 1 1 1 1 0 0 1 0 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Андрій Сташко(08i123)": // 1 1 0 1 1 0 1 1 0 0 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); return listOfAnswers; case "08i124 08i124(08i124)": // 0 1 1 1 1 0 0 1 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; case "Ігор Михалевич(08i125)": // 1 1 1 1 1 0 0 1 1 1 listOfAnswers.Add(new AnswerResult(0, "1", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "2", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "3", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "4", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "5", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "6", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "7", 0, attempt, "123", "123", InteractionType.Other, (float?)0.0)); listOfAnswers.Add(new AnswerResult(0, "8", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "9", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); listOfAnswers.Add(new AnswerResult(0, "10", 0, attempt, "123", "123", InteractionType.Other, (float?)1.0)); return listOfAnswers; default: return null; } }
public IEnumerable<AttemptResult> GetResults(User user) { List<AttemptResult> result = new List<AttemptResult>(); LearningStoreJob job = LStore.CreateJob(); RequestAttemptsByUser(job, user.Id.ToString()); DataTable dataTable = job.Execute<DataTable>(); foreach (DataRow dataRow in dataTable.AsEnumerable()) { AttemptItemIdentifier attemptItemId; LStoreHelper.CastNonNull(dataRow[Schema.AttemptsResultsByThemeAndUser.AttemptId], out attemptItemId); long attemptId = attemptItemId.GetKey(); Int32 topicId; LStoreHelper.CastNonNull(dataRow[Schema.AllAttemptsResults.ThemeId], out topicId); Topic topic = DisciplineService.GetTopic(topicId); if (topic == null) { throw new NoNullAllowedException("Error while getting topic with id = " + topicId); } Microsoft.LearningComponents.CompletionStatus completionStatus; LStoreHelper.CastNonNull(dataRow[Schema.AttemptsResultsByThemeAndUser.CompletionStatus], out completionStatus); IUDICO.Common.Models.Shared.Statistics.CompletionStatus iudicoCompletionStatus = (IUDICO.Common.Models.Shared.Statistics.CompletionStatus)completionStatus; Microsoft.LearningComponents.AttemptStatus attemptStatus; LStoreHelper.CastNonNull(dataRow[Schema.AttemptsResultsByThemeAndUser.AttemptStatus], out attemptStatus); IUDICO.Common.Models.Shared.Statistics.AttemptStatus iudicoAttemptStatus = (IUDICO.Common.Models.Shared.Statistics.AttemptStatus)attemptStatus; Microsoft.LearningComponents.SuccessStatus successStatus; LStoreHelper.CastNonNull(dataRow[Schema.AttemptsResultsByThemeAndUser.SuccessStatus], out successStatus); IUDICO.Common.Models.Shared.Statistics.SuccessStatus iudicoSuccessStatus = (IUDICO.Common.Models.Shared.Statistics.SuccessStatus)successStatus; DateTime? startTime; LStoreHelper.Cast(dataRow[Schema.AttemptsResultsByThemeAndUser.StartedTimestamp], out startTime); float? score; LStoreHelper.Cast<float>(dataRow[Schema.AttemptsResultsByThemeAndUser.Score], out score); float? scaledScore = null; if (score != null) { scaledScore = score / 100; } // Create AttemptResult object AttemptResult attemptResult = new AttemptResult(attemptId, user, topic, iudicoCompletionStatus, iudicoAttemptStatus, iudicoSuccessStatus, startTime, scaledScore); result.Add(attemptResult); } return result; }
public IEnumerable<AnswerResult> GetAnswers(AttemptResult attemptResult) { List<AnswerResult> result = new List<AnswerResult>(); LearningStoreJob job = LStore.CreateJob(); AttemptItemIdentifier attemptId = new AttemptItemIdentifier(attemptResult.AttemptId); RequestInteractionResultsByAttempt(job, attemptId); DataTable dataTable = job.Execute<DataTable>(); foreach (DataRow dataRow in dataTable.AsEnumerable()) { ActivityAttemptItemIdentifier activityAttemptItemId; LStoreHelper.CastNonNull(dataRow[Schema.InteractionResultsByAttempt.ActivityAttemptId], out activityAttemptItemId); long activityAttemptId = activityAttemptItemId.GetKey(); ActivityPackageItemIdentifier activityPackageItemId; LStoreHelper.CastNonNull(dataRow[Schema.InteractionResultsByAttempt.ActivityPackageId], out activityPackageItemId); long activityPackageId = activityPackageItemId.GetKey(); String activityTitle; LStoreHelper.CastNonNull(dataRow[Schema.InteractionResultsByAttempt.ActivityTitle], out activityTitle); InteractionItemIdentifier interactionItemId; LStoreHelper.Cast(dataRow[Schema.InteractionResultsByAttempt.InteractionId], out interactionItemId); long? interactionId = null; if (interactionItemId != null) { interactionId = interactionItemId.GetKey(); } Microsoft.LearningComponents.CompletionStatus completionStatus; LStoreHelper.CastNonNull(dataRow[Schema.InteractionResultsByAttempt.CompletionStatus], out completionStatus); IUDICO.Common.Models.Shared.Statistics.CompletionStatus iudicoCompletionStatus = (IUDICO.Common.Models.Shared.Statistics.CompletionStatus)completionStatus; Microsoft.LearningComponents.SuccessStatus? successStatus; LStoreHelper.Cast(dataRow[Schema.InteractionResultsByAttempt.SuccessStatus], out successStatus); IUDICO.Common.Models.Shared.Statistics.SuccessStatus? iudicoSuccessStatus = (IUDICO.Common.Models.Shared.Statistics.SuccessStatus?)successStatus; bool? learnerResponseBool = null; LStoreHelper.Cast(dataRow[Schema.InteractionResultsByAttempt.LearnerResponseBool], out learnerResponseBool); string learnerResponseString = null; LStoreHelper.Cast(dataRow[Schema.InteractionResultsByAttempt.LearnerResponseString], out learnerResponseString); double? learnerResponseNumeric = null; LStoreHelper.Cast(dataRow[Schema.InteractionResultsByAttempt.LearnerResponseNumeric], out learnerResponseNumeric); object learnerResponse = null; if (learnerResponseBool != null) { learnerResponse = learnerResponseBool; } if (learnerResponseString != null) { learnerResponse = learnerResponseString; } if (learnerResponseNumeric != null) { learnerResponse = learnerResponseNumeric; } string correctResponse; LStoreHelper.Cast(dataRow[Schema.InteractionResultsByAttempt.CorrectResponse], out correctResponse); Microsoft.LearningComponents.InteractionType? interactionType = null; LStoreHelper.Cast(dataRow[Schema.InteractionResultsByAttempt.InteractionType], out interactionType); IUDICO.Common.Models.Shared.Statistics.InteractionType? learnerResponseType = null; if (interactionType != null) { learnerResponseType = (IUDICO.Common.Models.Shared.Statistics.InteractionType)interactionType; } float? scaledScore; LStoreHelper.Cast<float>(dataRow[Schema.InteractionResultsByAttempt.ScaledScore], out scaledScore); // Create AnswerResult object AnswerResult answerResult = new AnswerResult(activityAttemptId, activityPackageId, activityTitle, interactionId, iudicoCompletionStatus, iudicoSuccessStatus, attemptResult, learnerResponse, correctResponse, learnerResponseType, scaledScore); result.Add(answerResult); } return result; }
public void UpdateUserAverage(AttemptResult attemptResult) { using (var db = this.GetDbContext()) { var user = db.Users.Single(u => u.Id == attemptResult.User.Id); var score = attemptResult.Score.ToPercents(); if (score != null) { user.TestsTotal += 1; user.TestsSum += (int)score.Value; } db.SubmitChanges(); } }
public ThemeTestResaultsModel(Int32 attemptId, List<AttemptResult> attList, ILmsService lmsService) { LmsService = lmsService; Attempt = attList.First(c => c.AttemptID == attemptId); }
/// <summary> /// Manages parsing of fields got from DataTable to return results of attempts. /// </summary> /// <param name="dataRows"><see cref="IEnumerable{T}"/> collection of <see cref="DataRow"/> containing results from <see cref="LearningStore"/></param> /// <param name="conditions"><see cref="List{T}"/> of <see cref="QueryCondition"/> objects needed to parse results properly.</param> /// <returns><see cref="IEnumerable{T}"/> collection of <see cref="AttemptResult"/> objects parsed from given <paramref name="dataRows"/>.</returns> protected IEnumerable<AttemptResult> ParseAttemptResults( IEnumerable<DataRow> dataRows, List<QueryCondition> conditions) { var queryColumns = AllAttemptsColumns.Except(conditions.Select(cond => cond.ColumnName)).ToList(); foreach (var dataRow in dataRows) { var attemptResult = new AttemptResult(); try { foreach (var condition in conditions) { this.ParseAttemptResultField(condition.Value, condition.ColumnName, ref attemptResult); } foreach (var queryColumn in queryColumns) { this.ParseAttemptResultField(dataRow[queryColumn], queryColumn, ref attemptResult); } } catch (NoNullAllowedException) { // skip not actual attempt results continue; } yield return attemptResult; } }