Exemplo n.º 1
0
 public override void Visit(Specimen.Model.SpecimenOrder specimenOrder)
 {
     if (specimenOrder.AliquotOrderCollection.Exists(this.m_AliquotOrder.AliquotOrderId) == true)
     {
         while (this.m_AliquotOrder.TestOrderCollection.Count != 0)
         {
             RemoveTestOrderVisitor removeTestOrderVisitor = new RemoveTestOrderVisitor(m_AliquotOrder.TestOrderCollection[0].TestOrderId);
             this.m_AccessionOrder.TakeATrip(removeTestOrderVisitor);
         }
         specimenOrder.AliquotOrderCollection.Remove(this.m_AliquotOrder);
     }
 }
 public override void Visit(Specimen.Model.SpecimenOrder specimenOrder)
 {
     if (specimenOrder.AliquotOrderCollection.Exists(this.m_AliquotOrder.AliquotOrderId) == true)
     {
         while (this.m_AliquotOrder.TestOrderCollection.Count != 0)
         {
             RemoveTestOrderVisitor removeTestOrderVisitor = new RemoveTestOrderVisitor(m_AliquotOrder.TestOrderCollection[0].TestOrderId);
             this.m_AccessionOrder.TakeATrip(removeTestOrderVisitor);
         }
         specimenOrder.AliquotOrderCollection.Remove(this.m_AliquotOrder);
     }
 }