I’m a big fan of Unit Testing, even more now that I’ve upgraded to MbUnit, it’s certainly much easier to test the data access layer with MbUnit, but I’ve found it nearly impossible to unit test my Project Server interfaces, I don’t know how to undo an insert/update in Project Server, has anyone figured out how to rollback transactions on Project Server using a Unit testing framework?
Related posts:





I’m not sure how exactly Project Server works, but to test it, you’ll need a scratch instance of it running somewhere. If you can point to a VM or a development server that would be okay, but you need to be able to insert data and forget about it.
Undo doesn’t really work well outside of database transactions, so it’s better to just run a bunch of tests and then tear down the instance.
These will be slow, but that’s okay because these are integration tests.
Ben Scheirman - 19 Nov 07 at 10:10 pm
that’s the solution I’ve settled for but it’s suboptimal to say the least, especially considering that project server gets grumpy if you reuse guids.
sheysrebellion - 20 Nov 07 at 11:25 pm
mbUnit?
James Thigpen - 12 Feb 08 at 9:57 pm