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"
Hi,
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")>
<Assembly: ApplicationAccessControl(True)>
<Assembly: ApplicationActivation(ActivationOption.Server)>
<ComponentAccessControl(True), _
SecurityRole("MyRole", True), _
Transaction(TransactionOption.Required)>
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.
Thanks
Dear Roy,
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.