예제 #1
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;
 }
예제 #2
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);
         }
     }
 }