public void Rollback(TestCaseResult result) { CheckDtcEnabled(result); worker.CheckTable(connection, result); XAction x = new XAction(); VirtuosoConnection xconn = null; try { string host = TestSettings.GetString("HOST", "localhost"); string connectionString = "HOST=" + host + ";UID=dba;PWD=dba;Pooling=True;"; xconn = x.Connect(connectionString); x.DoWork(xconn, worker); worker.CheckTable(xconn, result); x.Abort(); worker.DeleteRow(3); worker.DeleteRow(4); worker.CheckTable(connection, result); } finally { if (xconn != null) { xconn.Close(); } } }
public void Enlist(TestCaseResult result) { CheckDtcEnabled(result); XAction x = new XAction(); x.Enlist(connection); x.UnEnlist(connection); }
public void Rollback (TestCaseResult result) { CheckDtcEnabled (result); worker.CheckTable (connection, result); XAction x = new XAction (); VirtuosoConnection xconn = null; try { string host = TestSettings.GetString ("HOST", "localhost"); string connectionString = "HOST=" + host + ";UID=dba;PWD=dba;Pooling=True;"; xconn = x.Connect (connectionString); x.DoWork (xconn, worker); worker.CheckTable (xconn, result); x.Abort (); worker.DeleteRow (3); worker.DeleteRow (4); worker.CheckTable (connection, result); } finally { if (xconn != null) xconn.Close (); } }
public void Enlist (TestCaseResult result) { CheckDtcEnabled (result); XAction x = new XAction (); x.Enlist (connection); x.UnEnlist (connection); }