public override void Sync(DataTable dataTable, string panelOrderId)
        {
            this.RemoveDeleted(dataTable);
            DataTableReader dataTableReader = new DataTableReader(dataTable);
            while (dataTableReader.Read())
            {
                string testOrderId = dataTableReader["TestOrderId"].ToString();
                string testPanelOrderId = dataTableReader["PanelOrderId"].ToString();

                TestOrder testOrder = null;

                if (this.Exists(testOrderId) == true)
                {
                    testOrder = this.Get(testOrderId);
                }
                else if (testPanelOrderId == panelOrderId)
                {
                    testOrder = new TestOrder();
                    this.Add(testOrder);
                }

                if (testOrder != null)
                {
                    YellowstonePathology.Business.Persistence.SqlDataTableReaderPropertyWriter sqlDataTableReaderPropertyWriter = new Persistence.SqlDataTableReaderPropertyWriter(testOrder, dataTableReader);
                    sqlDataTableReaderPropertyWriter.WriteProperties();
                }
            }
        }
 public YellowstonePathology.Business.Test.Model.TestOrder GetNextItem(string panelOrderId, string objectId, string aliquotOrderId, YellowstonePathology.Business.Test.Model.Test test, string comment)
 {
     string testOrderId = YellowstonePathology.Business.OrderIdParser.GetNextTestOrderId(this, panelOrderId);
     YellowstonePathology.Business.Test.Model.TestOrder testOrder = new TestOrder(testOrderId, objectId, panelOrderId, aliquotOrderId, test, comment);
     return testOrder;
 }