/// <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; }
/// <summary> /// Deep copies the current DojoPromotion to another instance of DojoPromotion. /// </summary> /// <param name="DojoPromotion">The DojoPromotion to copy to.</param> /// <param name="isolation">Placeholders are used to isolate the DojoPromotion from its children.</param> public void CopyTo(DojoPromotion dojoPromotion, bool isolation) { dojoPromotion.iD = iD; dojoPromotion.isPlaceHolder = isPlaceHolder; dojoPromotion.isSynced = isSynced; if (member != null) { if (isolation) { dojoPromotion.member = member.NewPlaceHolder(); } else { dojoPromotion.member = member.Copy(false); } } if (test != null) { if (isolation) { dojoPromotion.test = test.NewPlaceHolder(); } else { dojoPromotion.test = test.Copy(false); } } dojoPromotion.promotionDate = promotionDate; if (promotionRank != null) { if (isolation) { dojoPromotion.promotionRank = promotionRank.NewPlaceHolder(); } else { dojoPromotion.promotionRank = promotionRank.Copy(false); } } if (lastRank != null) { if (isolation) { dojoPromotion.lastRank = lastRank.NewPlaceHolder(); } else { dojoPromotion.lastRank = lastRank.Copy(false); } } if (status != null) { if (isolation) { dojoPromotion.status = status.NewPlaceHolder(); } else { dojoPromotion.status = status.Copy(false); } } }