To test my Atomic transaction, I wrote a Windows Form
application that used my Class Library. It simply got the ID and value for an
account and passed them to Transfer() method. This Windows Form application
must have a reference to System.EnterpriseServices as well.
This is the event handler for my btnTransfer button:
private void btnTransfer_Click(object sender, EventArgs e)
MyTransaction transaction = new MyTransaction();
"Data Source=localhost;Initial "
+ "Integrated Security=True;Pooling=False");
catch (Exception ex)