Exemple #1
0
 /// <summary>
 /// Deep copies the current DojoTestListStatus to another instance of DojoTestListStatus.
 /// </summary>
 /// <param name="DojoTestListStatus">The DojoTestListStatus to copy to.</param>
 /// <param name="isolation">Placeholders are used to isolate the DojoTestListStatus from its children.</param>
 public void CopyTo(DojoTestListStatus dojoTestListStatus, bool isolation)
 {
     dojoTestListStatus.iD                    = iD;
     dojoTestListStatus.isPlaceHolder         = isPlaceHolder;
     dojoTestListStatus.isSynced              = isSynced;
     dojoTestListStatus.name                  = name;
     dojoTestListStatus.description           = description;
     dojoTestListStatus.orderNum              = orderNum;
     dojoTestListStatus.isDraft               = isDraft;
     dojoTestListStatus.isFinal               = isFinal;
     dojoTestListStatus.isComplete            = isComplete;
     dojoTestListStatus.teacherEditingEnabled = teacherEditingEnabled;
     if (onFinalized != null)
     {
         if (isolation)
         {
             dojoTestListStatus.onFinalized = onFinalized.NewPlaceHolder();
         }
         else
         {
             dojoTestListStatus.onFinalized = onFinalized.Copy(false);
         }
     }
     if (onCompleted != null)
     {
         if (isolation)
         {
             dojoTestListStatus.onCompleted = onCompleted.NewPlaceHolder();
         }
         else
         {
             dojoTestListStatus.onCompleted = onCompleted.Copy(false);
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// Deep copies the current DojoTestList to another instance of DojoTestList.
 /// </summary>
 /// <param name="DojoTestList">The DojoTestList to copy to.</param>
 /// <param name="isolation">Placeholders are used to isolate the DojoTestList from its children.</param>
 public void CopyTo(DojoTestList dojoTestList, bool isolation)
 {
     dojoTestList.iD            = iD;
     dojoTestList.isPlaceHolder = isPlaceHolder;
     dojoTestList.isSynced      = isSynced;
     dojoTestList.createDate    = createDate;
     dojoTestList.modifyDate    = modifyDate;
     if (test != null)
     {
         if (isolation)
         {
             dojoTestList.test = test.NewPlaceHolder();
         }
         else
         {
             dojoTestList.test = test.Copy(false);
         }
     }
     if (status != null)
     {
         if (isolation)
         {
             dojoTestList.status = status.NewPlaceHolder();
         }
         else
         {
             dojoTestList.status = status.Copy(false);
         }
     }
     if (editor != null)
     {
         if (isolation)
         {
             dojoTestList.editor = editor.NewPlaceHolder();
         }
         else
         {
             dojoTestList.editor = editor.Copy(false);
         }
     }
     dojoTestList.editorComments = editorComments;
     dojoTestList.field1         = field1;
     if (candidates != null)
     {
         if (isolation)
         {
             dojoTestList.candidates = candidates.Copy(true);
         }
         else
         {
             dojoTestList.candidates = candidates.Copy(false);
         }
     }
     dojoTestList.candidatesCompileDate = candidatesCompileDate;
 }
Exemple #3
0
 /// <summary>
 /// Deep copies the current DojoTest to another instance of DojoTest.
 /// </summary>
 /// <param name="DojoTest">The DojoTest to copy to.</param>
 /// <param name="isolation">Placeholders are used to isolate the DojoTest from its children.</param>
 public void CopyTo(DojoTest dojoTest, bool isolation)
 {
     dojoTest.iD            = iD;
     dojoTest.isPlaceHolder = isPlaceHolder;
     dojoTest.isSynced      = isSynced;
     dojoTest.name          = name;
     dojoTest.description   = description;
     dojoTest.testDate      = testDate;
     if (location != null)
     {
         if (isolation)
         {
             dojoTest.location = location.NewPlaceHolder();
         }
         else
         {
             dojoTest.location = location.Copy(false);
         }
     }
     if (listMemberType1 != null)
     {
         if (isolation)
         {
             dojoTest.listMemberType1 = listMemberType1.NewPlaceHolder();
         }
         else
         {
             dojoTest.listMemberType1 = listMemberType1.Copy(false);
         }
     }
     if (listMemberType2 != null)
     {
         if (isolation)
         {
             dojoTest.listMemberType2 = listMemberType2.NewPlaceHolder();
         }
         else
         {
             dojoTest.listMemberType2 = listMemberType2.Copy(false);
         }
     }
     if (listMemberType3 != null)
     {
         if (isolation)
         {
             dojoTest.listMemberType3 = listMemberType3.NewPlaceHolder();
         }
         else
         {
             dojoTest.listMemberType3 = listMemberType3.Copy(false);
         }
     }
     if (panelChief != null)
     {
         if (isolation)
         {
             dojoTest.panelChief = panelChief.NewPlaceHolder();
         }
         else
         {
             dojoTest.panelChief = panelChief.Copy(false);
         }
     }
     if (panelMembers != null)
     {
         if (isolation)
         {
             dojoTest.panelMembers = panelMembers.Copy(true);
         }
         else
         {
             dojoTest.panelMembers = panelMembers.Copy(false);
         }
     }
     if (status != null)
     {
         if (isolation)
         {
             dojoTest.status = status.NewPlaceHolder();
         }
         else
         {
             dojoTest.status = status.Copy(false);
         }
     }
     if (activeTestList != null)
     {
         if (isolation)
         {
             dojoTest.activeTestList = activeTestList.NewPlaceHolder();
         }
         else
         {
             dojoTest.activeTestList = activeTestList.Copy(false);
         }
     }
     if (item != null)
     {
         if (isolation)
         {
             dojoTest.item = item.NewPlaceHolder();
         }
         else
         {
             dojoTest.item = item.Copy(false);
         }
     }
 }