public void CreateSif3StudentResponseSet()
        {
            TraitScore traitScore1 = new TraitScore() { TraitScoreType = "type1", TraitScoreCode = "code1", TraitScoreValue = "value1" };
            TraitScore traitScore2 = new TraitScore() { TraitScoreType = "type2", TraitScoreCode = "code2", TraitScoreValue = "value2" };
            TraitScoreList traitscores = new TraitScoreList() { traitScore1, traitScore2 };

            Sif3Item sif3Item = new Sif3Item() { TraitScores = traitscores };
            ItemList itemList = new ItemList() {sif3Item };

            Sif3StudentResponseSet sif3StudentResponseSet = new Sif3StudentResponseSet();
            sif3StudentResponseSet.RefId = "90E298F70E094EE2B8B52DFD88006AF2";
            sif3StudentResponseSet.AssessmentAdministrationRefId = "90E298F70E094EE2B8B52DFD88006AF3";
            sif3StudentResponseSet.StudentPersonalRefId = "90E298F70E094EE2B8B52DFD88006AF4";
            sif3StudentResponseSet.AssessmentRegistrationRefId = "90E298F70E094EE2B8B52DFD88006AF5";
            sif3StudentResponseSet.Items = itemList;

            if (log.IsDebugEnabled) log.Debug("Sif3StudentResponseSet instance: " + sif3StudentResponseSet.ToXml());
            Console.WriteLine("Sif3StudentResponseSet instance: " + sif3StudentResponseSet.ToXml());
        }
Пример #2
0
 ///<summary>Sets the value of the <c>&lt;TraitScores&gt;</c> element.</summary>
 /// <param name="TraitScore">A TraitScore</param>
 ///<remarks>
 /// <para>This form of <c>setTraitScores</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>TraitScores</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.6</para>
 /// </remarks>
 public void SetTraitScores(TraitScore TraitScore)
 {
     RemoveChild(Sif3assessmentDTD.SIF3ITEM_TRAITSCORES);
     AddChild(Sif3assessmentDTD.SIF3ITEM_TRAITSCORES, new TraitScoreList(TraitScore));
 }