public static AssessmentScript BuildFromAssessment(Assessment assessment)
        {
            AssessmentScript script = new AssessmentScript();

            script.questions = assessment.Questions;
            script.published = false;
            //Populate answers dictionary with answer objects for each question
            foreach (var q in script.Questions)
            {
                q.AddToAnswerDict(script.Answers);
            }
            script.timeData = new TimeData()
            {
                Minutes = 60
            };
            script.AssessmentInfo = new AssessmentInformation()
            {
                AssessmentName      = "Assessment",
                Author              = "",
                AssessmentWeighting = 0
            };

            return(script);
        }
Exemple #2
0
 public AssessmentSession(string courseID, string deploymentTarget, AssessmentInformation assessmentInfo, string assessmentFileName, DateTime startTime, int assessmentLength, int readingTime, string restartPassword, List <StudentData> studentData, List <string> additionalFiles, DateTime deploymentTime, Assessment assessment)
 {
     this.assessmentInfo     = assessmentInfo;
     this.assessmentFileName = assessmentFileName;
     this.courseID           = courseID;
     this.deploymentTarget   = deploymentTarget;
     this.startTime          = startTime;
     this.assessmentLength   = assessmentLength;
     this.readingTime        = readingTime;
     this.restartPassword    = restartPassword;
     this.studentData        = studentData;
     this.additionalFiles    = additionalFiles;
     this.deploymentTime     = deploymentTime;
     this.assessment         = assessment;
 }
 public AssessmentWriter(Assessment assessment, string filePath)
 {
     a = assessment;
     //this.info = info;
     this.filePath = filePath;
 }
Exemple #4
0
 public static void RebuildAssessmentQuestionList(Assessment assessment, TreeView treeView)
 {
     //Shorter call to rebuild the entire question list of the given assessment from the given treeview
     BuildQuestionListFromNodeCollection(assessment.Questions, treeView.Nodes);
 }
Exemple #5
0
 public StudentMarkingData(StudentData d, Assessment assessment)
 {
     studentData = d;
     BuildFromAssessment(assessment);
 }