/// <summary> /// Deep copies the current DojoTestListJournalEntry to another instance of DojoTestListJournalEntry. /// </summary> /// <param name="DojoTestListJournalEntry">The DojoTestListJournalEntry to copy to.</param> /// <param name="isolation">Placeholders are used to isolate the DojoTestListJournalEntry from its children.</param> public void CopyTo(DojoTestListJournalEntry dojoTestListJournalEntry, bool isolation) { dojoTestListJournalEntry.iD = iD; dojoTestListJournalEntry.isPlaceHolder = isPlaceHolder; dojoTestListJournalEntry.isSynced = isSynced; if (testList != null) { if (isolation) { dojoTestListJournalEntry.testList = testList.NewPlaceHolder(); } else { dojoTestListJournalEntry.testList = testList.Copy(false); } } if (member != null) { if (isolation) { dojoTestListJournalEntry.member = member.NewPlaceHolder(); } else { dojoTestListJournalEntry.member = member.Copy(false); } } if (entryType != null) { if (isolation) { dojoTestListJournalEntry.entryType = entryType.NewPlaceHolder(); } else { dojoTestListJournalEntry.entryType = entryType.Copy(false); } } dojoTestListJournalEntry.createDate = createDate; if (editor != null) { if (isolation) { dojoTestListJournalEntry.editor = editor.NewPlaceHolder(); } else { dojoTestListJournalEntry.editor = editor.Copy(false); } } dojoTestListJournalEntry.comment = comment; if (promotion != null) { if (isolation) { dojoTestListJournalEntry.promotion = promotion.NewPlaceHolder(); } else { dojoTestListJournalEntry.promotion = promotion.Copy(false); } } }
/// <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); } } }