private void LoadTestTata_GetBatchInfo() { TDBTransaction transaction = DBAccess.GDBAccessObj.BeginTransaction(); ABatchRow template = new ABatchTable().NewRowTyped(false); template.BatchDescription = strTestDataBatchDescription; ABatchTable batches = ABatchAccess.LoadUsingTemplate(template, transaction); DBAccess.GDBAccessObj.CommitTransaction(); if (batches.Rows.Count == 0) { CommonNUnitFunctions.LoadTestDataBase("csharp\\ICT\\Testing\\lib\\MFinance\\GL\\" + "test-sql\\gl-test-batch-data.sql", intLedgerNumber); } }
private void LoadTestData_GetBatchInfo() { ABatchRow template = new ABatchTable().NewRowTyped(false); template.LedgerNumber = FLedgerNumber; template.BatchDescription = strTestDataBatchDescription; TDBTransaction transaction = null; ABatchTable batches = null; DBAccess.GDBAccessObj.BeginAutoReadTransaction(ref transaction, delegate { batches = ABatchAccess.LoadUsingTemplate(template, transaction); }); if (batches.Rows.Count == 0) { CommonNUnitFunctions.LoadTestDataBase("csharp\\ICT\\Testing\\lib\\MFinance\\GL\\" + "test-sql\\gl-test-batch-data.sql", FLedgerNumber); } }