This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, Ive been trying to set up unit tests for the lightspeed classes, As I obviously don't want to add data to the database i was looking into the BeginTransaction method of Repository After making the transaction, adding a new Entity and calling CompleteUnitOfWork i get "cannot accessed disposed object" error when i try to tran.Rollback(). My question is, does the CompleteUnitOfWork() method implictly rollback or otherwise dispose open transactions?
And if so, how do you commit a transaction over several "Units of Work" ?
Peter |
|
|
Hi Peter, Check out the transactional testing pattern as discussed in the help under Unit Testing. Cheers, Andrew. |
|