Unit Testing, Agile Development, Leadership & .NET - By Roy Osherove
A while ago I wrote an article about database unit testing, and the various ways you could "rollback"
I have a problem in using com+ for transaction.
I used to use vb.net 2003. My program's architecture is 5 layers.
The Business objects and dataobjects are com+ objects.I use tcp channel for remoting and the atributes for com+ that I use are :
<Assembly: ApplicationName("App Name")>
SecurityRole("MyRole", True), _
and for all of my functions I use try/catch .at the end of try I use ContextUtil.SetComplete and In catch I use Contextutil.SetAbort. also I Inherit a class from Exception for my own exception.
but In one function I call 3 other functions.when the error of remoting has raised or when I throw my own exception, SetAbort does not work.
I will be glad If someone help.
Could you pleased upload the source code sample of this article?
I couldn't make test with this. The error :
TestFixture failed: Invalid ServicedComponent-derived classes were found in the assembly.
Thanks. Best regards.