Woah, Nellie.NET!

From my simple mind to… mine…

Supporting Unit of Work in NDbUnit

with one comment

I modified NDbUnit to support an external transaction via injection. Wasn’t too difficult:

1. Added an a property to the interface to be able to acquire the transaction, just in case.


2. Added a reference to the transaction in the DBCommandBuilder base class.


3. Implemented the Transaction property and reimplemented the Connection property to support the transaction reference.

4. Extend the various xUnitTest constructors to “inject” the transaction. This one is for the Sql Server CE Unit Test.

5. Finally, modify the unit tests to pass the transactions.

Advertisements

Written by Nelson

December 28, 2006 at 5:48 am

Posted in Uncategorized

One Response

Subscribe to comments with RSS.

  1. Mr. Montalvo,

    I am interested in your changes to NDbUnit, but I don’t seem to find them on the ndbunit.org subversion repository. How can I get your version?

    Regards.

    Jesús Garza

    JesusG

    March 30, 2007 at 3:49 pm


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: