<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Unit Testing An NHibernate Application</title> <atom:link href="http://davybrion.com/blog/2009/12/unit-testing-an-nhibernate-application/feed/" rel="self" type="application/rss+xml" /><link>http://davybrion.com/blog/2009/12/unit-testing-an-nhibernate-application/</link> <description>inquisitive: adjective. given to inquiry, research, or asking questions; eager for knowledge; intellectually curious</description> <lastBuildDate>Wed, 08 Feb 2012 11:42:42 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: A1104201</title><link>http://davybrion.com/blog/2009/12/unit-testing-an-nhibernate-application/comment-page-1/#comment-98297</link> <dc:creator>A1104201</dc:creator> <pubDate>Thu, 03 Mar 2011 10:18:00 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2008#comment-98297</guid> <description>&lt;a href=&quot;http://www.ghdplanchaspelo.eu&quot; rel=&quot;nofollow&quot;&gt;ghd planchas&lt;/a&gt;
&lt;a href=&quot;http://www.straightenersau.com&quot; rel=&quot;nofollow&quot;&gt;ghd&lt;/a&gt;
&lt;a href=&quot;http://www.ghdretailer-shop.com&quot; rel=&quot;nofollow&quot;&gt;ghd&lt;/a&gt;
&lt;a href=&quot;http://www.IWC.eu.com&quot; rel=&quot;nofollow&quot;&gt;IWC&lt;/a&gt;
&lt;a href=&quot;http://www.ledstripmzg.com&quot; rel=&quot;nofollow&quot;&gt;led lights&lt;/a&gt;</description> <content:encoded><![CDATA[<p><a
href="http://www.ghdplanchaspelo.eu" rel="nofollow">ghd planchas</a><br
/> <a
href="http://www.straightenersau.com" rel="nofollow">ghd</a><br
/> <a
href="http://www.ghdretailer-shop.com" rel="nofollow">ghd</a><br
/> <a
href="http://www.IWC.eu.com" rel="nofollow">IWC</a><br
/> <a
href="http://www.ledstripmzg.com" rel="nofollow">led lights</a></p> ]]></content:encoded> </item> <item><title>By: Davy Brion</title><link>http://davybrion.com/blog/2009/12/unit-testing-an-nhibernate-application/comment-page-1/#comment-26059</link> <dc:creator>Davy Brion</dc:creator> <pubDate>Mon, 25 Jan 2010 06:02:04 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2008#comment-26059</guid> <description>@RTyou&#039;re right on all counts :)</description> <content:encoded><![CDATA[<p>@RT</p><p>you&#8217;re right on all counts <img
src='http://d18sni7re4ly7f.cloudfront.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: RT</title><link>http://davybrion.com/blog/2009/12/unit-testing-an-nhibernate-application/comment-page-1/#comment-26045</link> <dc:creator>RT</dc:creator> <pubDate>Mon, 25 Jan 2010 01:02:44 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2008#comment-26045</guid> <description>Just following up on my earlier post...First things first...It should be constructor instead of construction in my previous post.Second, I&#039;ll try to answer my own question...The ActiveSessionManager should be implemented without a IRequestState paramater because in a Unit testing environment there is no thread safety issue and there is nothing sysnonymous to HttpContext.Current.Items as in an ASP.net environment. We still need to store the session somewhere; so, we can store it just a private variable in ActiveSessionManager and modify the Current property accordingly.Am I right?I&#039;m trying to learn this technology without a mentor.Thanks</description> <content:encoded><![CDATA[<p>Just following up on my earlier post&#8230;</p><p>First things first&#8230;It should be constructor instead of construction in my previous post.</p><p>Second, I&#8217;ll try to answer my own question&#8230;The ActiveSessionManager should be implemented without a IRequestState paramater because in a Unit testing environment there is no thread safety issue and there is nothing sysnonymous to HttpContext.Current.Items as in an ASP.net environment. We still need to store the session somewhere; so, we can store it just a private variable in ActiveSessionManager and modify the Current property accordingly.</p><p>Am I right?</p><p>I&#8217;m trying to learn this technology without a mentor.</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: RT</title><link>http://davybrion.com/blog/2009/12/unit-testing-an-nhibernate-application/comment-page-1/#comment-26043</link> <dc:creator>RT</dc:creator> <pubDate>Mon, 25 Jan 2010 00:38:41 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2008#comment-26043</guid> <description>Hi,I was scratching my head over something in your posts here..BTW, great posts...You instantiate ActiveSessionManager in this class without any parameters. On the other hand, ActiveSessionManager has a single construction with IRequestState as a parameter. So, the code will not compile. Am I missing something?Thanks.</description> <content:encoded><![CDATA[<p>Hi,</p><p>I was scratching my head over something in your posts here..BTW, great posts&#8230;</p><p>You instantiate ActiveSessionManager in this class without any parameters. On the other hand, ActiveSessionManager has a single construction with IRequestState as a parameter. So, the code will not compile. Am I missing something?</p><p>Thanks.</p> ]]></content:encoded> </item> <item><title>By: Weekly Links #83 &#124; GrantPalin.com</title><link>http://davybrion.com/blog/2009/12/unit-testing-an-nhibernate-application/comment-page-1/#comment-23196</link> <dc:creator>Weekly Links #83 &#124; GrantPalin.com</dc:creator> <pubDate>Sun, 13 Dec 2009 22:57:41 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2008#comment-23196</guid> <description>[...] Unit Testing An NHibernate Application Integration testing more like, but still very useful information for creating automated tests for a .NET project that uses NHibernate. [...]</description> <content:encoded><![CDATA[<p>[...] Unit Testing An NHibernate Application Integration testing more like, but still very useful information for creating automated tests for a .NET project that uses NHibernate. [...]</p> ]]></content:encoded> </item> <item><title>By: Grant Palin</title><link>http://davybrion.com/blog/2009/12/unit-testing-an-nhibernate-application/comment-page-1/#comment-23117</link> <dc:creator>Grant Palin</dc:creator> <pubDate>Mon, 07 Dec 2009 23:47:36 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2008#comment-23117</guid> <description>So, so grateful. :) Straight to the bookmarks.This post fills an important piece of the NHibernate puzzle that I am currently working on. I&#039;ve known that it is important to test as much of your code as possible, but I didn&#039;t know how you would do it with NH involved. It seems clear to me that integration tests, rather than unit tests, are appropriate in this situation, and the transaction-rollback technique makes more sense.There are other pieces in the NH puzzle that have yet to be filled, but this important one is done now. I&#039;ll be referring back to this post - and your other posts on NH - once my new project gets a little further along.</description> <content:encoded><![CDATA[<p>So, so grateful. <img
src='http://d18sni7re4ly7f.cloudfront.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Straight to the bookmarks.</p><p>This post fills an important piece of the NHibernate puzzle that I am currently working on. I&#8217;ve known that it is important to test as much of your code as possible, but I didn&#8217;t know how you would do it with NH involved. It seems clear to me that integration tests, rather than unit tests, are appropriate in this situation, and the transaction-rollback technique makes more sense.</p><p>There are other pieces in the NH puzzle that have yet to be filled, but this important one is done now. I&#8217;ll be referring back to this post &#8211; and your other posts on NH &#8211; once my new project gets a little further along.</p> ]]></content:encoded> </item> <item><title>By: Renana</title><link>http://davybrion.com/blog/2009/12/unit-testing-an-nhibernate-application/comment-page-1/#comment-23109</link> <dc:creator>Renana</dc:creator> <pubDate>Mon, 07 Dec 2009 12:39:50 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2008#comment-23109</guid> <description>Great post, great timing.I just entered the world of unit testing and ActiveRecords. I was writing test with the &quot;new database&quot; scenario and will switch to the &quot;rollback&quot; scenario which will suit me more since I prefer to do my testings on a bit more complex database.Thanks,
Renana</description> <content:encoded><![CDATA[<p>Great post, great timing.</p><p>I just entered the world of unit testing and ActiveRecords. I was writing test with the &#8220;new database&#8221; scenario and will switch to the &#8220;rollback&#8221; scenario which will suit me more since I prefer to do my testings on a bit more complex database.</p><p>Thanks,<br
/> Renana</p> ]]></content:encoded> </item> <item><title>By: Joe</title><link>http://davybrion.com/blog/2009/12/unit-testing-an-nhibernate-application/comment-page-1/#comment-23106</link> <dc:creator>Joe</dc:creator> <pubDate>Mon, 07 Dec 2009 09:43:20 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2008#comment-23106</guid> <description>Cool,I&#039;ve been using MBUnit for testing and this has a nice little attribute [RollBack] that will rollback any transactions on the database.Thanks, Joe</description> <content:encoded><![CDATA[<p>Cool,</p><p>I&#8217;ve been using MBUnit for testing and this has a nice little attribute [RollBack] that will rollback any transactions on the database.</p><p>Thanks, Joe</p> ]]></content:encoded> </item> <item><title>By: Jonathan Adams</title><link>http://davybrion.com/blog/2009/12/unit-testing-an-nhibernate-application/comment-page-1/#comment-23105</link> <dc:creator>Jonathan Adams</dc:creator> <pubDate>Mon, 07 Dec 2009 09:18:23 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2008#comment-23105</guid> <description>Great post Davy,  one point,  these are Integration tests not unit tests and should be run away from your unit tests.But great post !</description> <content:encoded><![CDATA[<p>Great post Davy,  one point,  these are Integration tests not unit tests and should be run away from your unit tests.</p><p>But great post !</p> ]]></content:encoded> </item> <item><title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #492</title><link>http://davybrion.com/blog/2009/12/unit-testing-an-nhibernate-application/comment-page-1/#comment-23104</link> <dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #492</dc:creator> <pubDate>Mon, 07 Dec 2009 08:35:15 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2008#comment-23104</guid> <description>[...] Unit Testing An NHibernate Application - Davy Brion talks about two means of doing having Unit Tests which test an NHibernate applications interactions with a database, test that rollback the database changes, and test which create a new database for each test/fixture, showing how each can be achieved [...]</description> <content:encoded><![CDATA[<p>[...] Unit Testing An NHibernate Application &#8211; Davy Brion talks about two means of doing having Unit Tests which test an NHibernate applications interactions with a database, test that rollback the database changes, and test which create a new database for each test/fixture, showing how each can be achieved [...]</p> ]]></content:encoded> </item> <item><title>By: Davy Brion</title><link>http://davybrion.com/blog/2009/12/unit-testing-an-nhibernate-application/comment-page-1/#comment-23101</link> <dc:creator>Davy Brion</dc:creator> <pubDate>Mon, 07 Dec 2009 06:02:49 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2008#comment-23101</guid> <description>@Sean,i&#039;ll post the base class for the CRUD tests later today</description> <content:encoded><![CDATA[<p>@Sean,</p><p>i&#8217;ll post the base class for the CRUD tests later today</p> ]]></content:encoded> </item> <item><title>By: Sean Gough</title><link>http://davybrion.com/blog/2009/12/unit-testing-an-nhibernate-application/comment-page-1/#comment-23096</link> <dc:creator>Sean Gough</dc:creator> <pubDate>Mon, 07 Dec 2009 01:42:41 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=2008#comment-23096</guid> <description>Wow, your timing couldn&#039;t be better as I just started experimenting with this last week.  So thanks a ton for posting this!  I agree that testing CRUD ops is key, but it always seems messy when I actually try to do it thoroughly.  Can you shed some light on how you test each entity automatically?</description> <content:encoded><![CDATA[<p>Wow, your timing couldn&#8217;t be better as I just started experimenting with this last week.  So thanks a ton for posting this!  I agree that testing CRUD ops is key, but it always seems messy when I actually try to do it thoroughly.  Can you shed some light on how you test each entity automatically?</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/16 queries in 0.010 seconds using disk: basic
Object Caching 509/510 objects using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: d18sni7re4ly7f.cloudfront.net

Served from: davybrion.com @ 2012-02-08 19:02:31 -->
