/// <summary> /// Adds the lab test. /// </summary> /// <param name="labTestInfo">The lab test info.</param> /// <returns>A LabTest.</returns> public virtual LabTest AddLabTest(LabTestInfo labTestInfo) { var labTest = new LabTest { LabSpecimen = this }; labTest.ReviseLabTestInfo(labTestInfo); _labTests.Add(labTest); NotifyItemAdded(() => LabTests, labTest); return(labTest); }
/// <summary> /// Revises the lab test info. /// </summary> /// <param name="labTestInfo">The lab test info.</param> public virtual void ReviseLabTestInfo(LabTestInfo labTestInfo) { Check.IsNotNull(labTestInfo, () => LabTestInfo); LabTestInfo = labTestInfo; }