Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
UnitOfWork attribute and NUnit tests
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Paul  
View profile  
 More options Aug 9 2012, 12:52 am
From: Paul <shor...@gmail.com>
Date: Wed, 8 Aug 2012 21:52:01 -0700 (PDT)
Local: Thurs, Aug 9 2012 12:52 am
Subject: UnitOfWork attribute and NUnit tests

Hi Everyone,

I have a NUnit test project which works with the database.  The test I've
created inserts a parent record into the database (which is housed in it's
own function with a [UnitOfWork] attribute inside a utility class) and then
proceeds to insert child records (also in it's own function with a
[UnitOfWork] attribute in the utility clas).  I have my parent object setup
such that it contains a list of the child objects.  The records insert
fine.  However, when I retrieve the parent object, the child objects are
null.  Other applications I built that retrieve this parent object also
retrieve the list of child objects.

I have injected the utility class via Windsor and I made sure the actual
methods are marked virtual to support [UnitOfWork].  The utility class is
resolved in a [TestFixtureSetup] marked attribute in the test.

 Has anyone come across this before?  Is there some possible interaction
with NUnit that would cause this?  Am I missing something or doing
something wrong?  Any help/insight is greatly appreciated!

Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »