<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Corey Coogan</title>
	<atom:link href="http://blog.coreycoogan.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.coreycoogan.com</link>
	<description>.Net, C#, ASP.NET MVC, Architecture and Design</description>
	<lastBuildDate>Fri, 05 Mar 2010 14:53:00 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Asp.Net MVC, S#arp Architecture and Blood by coreycoogan</title>
		<link>http://blog.coreycoogan.com/2009/09/05/asp-net-mvc-sarp-architecture-and-blood/#comment-111</link>
		<dc:creator>coreycoogan</dc:creator>
		<pubDate>Fri, 05 Mar 2010 14:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=133#comment-111</guid>
		<description>I&#039;ve been a little removed from that for a while, but I was relying on the [Authorize] filter.  I can give it role names for who can access certain content.

http://msdn.microsoft.com/en-us/library/dd381413.aspx</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been a little removed from that for a while, but I was relying on the [Authorize] filter.  I can give it role names for who can access certain content.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/dd381413.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/dd381413.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Asp.Net MVC, S#arp Architecture and Blood by Kevin Jensen</title>
		<link>http://blog.coreycoogan.com/2009/09/05/asp-net-mvc-sarp-architecture-and-blood/#comment-110</link>
		<dc:creator>Kevin Jensen</dc:creator>
		<pubDate>Fri, 05 Mar 2010 14:01:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=133#comment-110</guid>
		<description>Corey,

I was wondering how you handled membership with RPO?  I&#039;m looking to implement custom IPrincipal and wondering if you are handling that in ActionFilters or what?

I&#039;m using the same stack.

Thanks,

Kevin</description>
		<content:encoded><![CDATA[<p>Corey,</p>
<p>I was wondering how you handled membership with RPO?  I&#8217;m looking to implement custom IPrincipal and wondering if you are handling that in ActionFilters or what?</p>
<p>I&#8217;m using the same stack.</p>
<p>Thanks,</p>
<p>Kevin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Holy Over Mocking Batman: A Natural Progression by coreycoogan</title>
		<link>http://blog.coreycoogan.com/2010/01/28/holy-over-mocking-batman-a-natural-progression/#comment-104</link>
		<dc:creator>coreycoogan</dc:creator>
		<pubDate>Fri, 19 Feb 2010 21:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://coreycoogan.wordpress.com/?p=258#comment-104</guid>
		<description>Thanks for the comment James.  Your tests should test the core logic that you are getting at. For example, a typical layered architecture might include some domain services that interact with entities.  Don&#039;t bother testing how the service method gets the entity, just test the logic and state changed by the service method. You may then have Application Services that are responsible for getting entities from repository and feeding them into the domain service.  From that standpoint, an interaction test to ensure that the app service is opening a transaction or calling the proper domain service may be appropriate, but you wouldn&#039;t need to assert any calls on your Repository and could Mock your domain service.  Does this make sense? Let me know if you&#039;d like to see some code and I will write a short post to include some.</description>
		<content:encoded><![CDATA[<p>Thanks for the comment James.  Your tests should test the core logic that you are getting at. For example, a typical layered architecture might include some domain services that interact with entities.  Don&#8217;t bother testing how the service method gets the entity, just test the logic and state changed by the service method. You may then have Application Services that are responsible for getting entities from repository and feeding them into the domain service.  From that standpoint, an interaction test to ensure that the app service is opening a transaction or calling the proper domain service may be appropriate, but you wouldn&#8217;t need to assert any calls on your Repository and could Mock your domain service.  Does this make sense? Let me know if you&#8217;d like to see some code and I will write a short post to include some.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Holy Over Mocking Batman: A Natural Progression by James Thigpen</title>
		<link>http://blog.coreycoogan.com/2010/01/28/holy-over-mocking-batman-a-natural-progression/#comment-103</link>
		<dc:creator>James Thigpen</dc:creator>
		<pubDate>Thu, 18 Feb 2010 19:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://coreycoogan.wordpress.com/?p=258#comment-103</guid>
		<description>So I&#039;m at the realization now that interaction based tests with too many mocks yields fragile tests, but in the blog you don&#039;t really describe what that next step is, just that &quot;tests get simpler&quot;.  How do they get simpler? What do they look like?</description>
		<content:encoded><![CDATA[<p>So I&#8217;m at the realization now that interaction based tests with too many mocks yields fragile tests, but in the blog you don&#8217;t really describe what that next step is, just that &#8220;tests get simpler&#8221;.  How do they get simpler? What do they look like?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on NServiceBus and Event Driven Architecture (EDA) by Eggheads, Elite, Shills and the Mainstream &#171; Corey Coogan</title>
		<link>http://blog.coreycoogan.com/2009/11/06/nservicebus-and-event-driven-architecture-eda/#comment-101</link>
		<dc:creator>Eggheads, Elite, Shills and the Mainstream &#171; Corey Coogan</dc:creator>
		<pubDate>Fri, 12 Feb 2010 02:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=193#comment-101</guid>
		<description>[...] covered Scott Felder covered NServiceBus to an audience of 5.&#160; I prepared a presentation on the Spark View Engine, which was supposed [...]</description>
		<content:encoded><![CDATA[<p>[...] covered Scott Felder covered NServiceBus to an audience of 5.&#160; I prepared a presentation on the Spark View Engine, which was supposed [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Castle Windsor Tutorial in Asp.Net MVC by coreycoogan</title>
		<link>http://blog.coreycoogan.com/2009/11/06/castle-windsor-tutorial-in-asp-net-mvc/#comment-99</link>
		<dc:creator>coreycoogan</dc:creator>
		<pubDate>Fri, 22 Jan 2010 01:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=196#comment-99</guid>
		<description>There is an issue with access the Container right away before the first request.  I ran into this issue also while setting up some logging stuff right away.  I had to post back first for the same reason.  There&#039;s some chatter about the issue and perhaps a solution by now.

http://blog.alanta.nl/2009/07/castle-perwebrequestlifestyle-wont-work.html</description>
		<content:encoded><![CDATA[<p>There is an issue with access the Container right away before the first request.  I ran into this issue also while setting up some logging stuff right away.  I had to post back first for the same reason.  There&#8217;s some chatter about the issue and perhaps a solution by now.</p>
<p><a href="http://blog.alanta.nl/2009/07/castle-perwebrequestlifestyle-wont-work.html" rel="nofollow">http://blog.alanta.nl/2009/07/castle-perwebrequestlifestyle-wont-work.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Castle Windsor Tutorial in Asp.Net MVC by Kevin</title>
		<link>http://blog.coreycoogan.com/2009/11/06/castle-windsor-tutorial-in-asp-net-mvc/#comment-98</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Thu, 21 Jan 2010 23:17:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=196#comment-98</guid>
		<description>ugh.... ok.. the AddFacility() has generic FactorySupportFacility, I promise.. this is just removing the opening and closing bracket.</description>
		<content:encoded><![CDATA[<p>ugh&#8230;. ok.. the AddFacility() has generic FactorySupportFacility, I promise.. this is just removing the opening and closing bracket.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Castle Windsor Tutorial in Asp.Net MVC by Kevin</title>
		<link>http://blog.coreycoogan.com/2009/11/06/castle-windsor-tutorial-in-asp-net-mvc/#comment-97</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Thu, 21 Jan 2010 23:15:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=196#comment-97</guid>
		<description>typo:

AddFacility();

and not just AddFacility();</description>
		<content:encoded><![CDATA[<p>typo:</p>
<p>AddFacility();</p>
<p>and not just AddFacility();</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Castle Windsor Tutorial in Asp.Net MVC by Kevin</title>
		<link>http://blog.coreycoogan.com/2009/11/06/castle-windsor-tutorial-in-asp-net-mvc/#comment-96</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Thu, 21 Jan 2010 23:14:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=196#comment-96</guid>
		<description>I was finally able to find that UsingFactoryMethod, but still this doesn&#039;t work for me...

I&#039;m initializing my custom container in the Application_Start() event handler in the Global.asax.

And my custom container looks this:

public class MyContainer : WindsorContainer
{
        public MyContainer() : base()
        {
            AddFacility();

            Register(Component.For()
                .LifeStyle.PerWebRequest
                .UsingFactoryMethod(() =&gt; new HttpSessionStateWrapper(HttpContext.Current.Session)));

            Initialize();
        }

...

}

But when the UsingFactoryMethod is called, the HttpContext.Current.Session is null.

Additionally, this &quot;.LifeStyle.PerWebRequest&quot; doesn&#039;t seem to work either.
I&#039;ve registered the PerWebRequest module but I always get:

&quot;Looks like you forgot to register the http module Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule
Add &#039;&#039; to the  section on your web.config&quot;


Any idea of what is going on?</description>
		<content:encoded><![CDATA[<p>I was finally able to find that UsingFactoryMethod, but still this doesn&#8217;t work for me&#8230;</p>
<p>I&#8217;m initializing my custom container in the Application_Start() event handler in the Global.asax.</p>
<p>And my custom container looks this:</p>
<p>public class MyContainer : WindsorContainer<br />
{<br />
        public MyContainer() : base()<br />
        {<br />
            AddFacility();</p>
<p>            Register(Component.For()<br />
                .LifeStyle.PerWebRequest<br />
                .UsingFactoryMethod(() =&gt; new HttpSessionStateWrapper(HttpContext.Current.Session)));</p>
<p>            Initialize();<br />
        }</p>
<p>&#8230;</p>
<p>}</p>
<p>But when the UsingFactoryMethod is called, the HttpContext.Current.Session is null.</p>
<p>Additionally, this &#8220;.LifeStyle.PerWebRequest&#8221; doesn&#8217;t seem to work either.<br />
I&#8217;ve registered the PerWebRequest module but I always get:</p>
<p>&#8220;Looks like you forgot to register the http module Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule<br />
Add &#8221; to the  section on your web.config&#8221;</p>
<p>Any idea of what is going on?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Castle Windsor Tutorial in Asp.Net MVC by Kevin</title>
		<link>http://blog.coreycoogan.com/2009/11/06/castle-windsor-tutorial-in-asp-net-mvc/#comment-95</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Thu, 21 Jan 2010 22:18:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=196#comment-95</guid>
		<description>I&#039;ll answer my own post: UsingFactoryMethod is part of Castle Windsor??... but WHERE? The latest I see is Windsor 2.0 - May 5th, 2009 , but it is not there.

Thanks.</description>
		<content:encoded><![CDATA[<p>I&#8217;ll answer my own post: UsingFactoryMethod is part of Castle Windsor??&#8230; but WHERE? The latest I see is Windsor 2.0 &#8211; May 5th, 2009 , but it is not there.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
