﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Avish commented on NH Prof Deep Dive: The Integration Test Architecture</title><description>Er... did subtext just eat my generic parameters because they looked like Xml? 
  
  
I meant Statements.OfType&lt;StatementModel&gt;().First(), of course.
</description><link>http://ayende.com/3677/nh-prof-deep-dive-the-integration-test-architecture#comment2</link><guid>http://ayende.com/3677/nh-prof-deep-dive-the-integration-test-architecture#comment2</guid><pubDate>Thu, 06 Nov 2008 17:59:08 GMT</pubDate></item><item><title>Avish commented on NH Prof Deep Dive: The Integration Test Architecture</title><description>Just a quick off-topic regarding enumerable extension methods: 
  
  
you can replace this:
  
  
StatementModel selectBlogById = (StatementModel)
  
            sessionModel.Statements.Where(x=&gt;x is StatementModel).First();
  
  
with this:
  
  
StatementModel selectBlogById = 
  
      sessionModel.Statements.OfType
&lt;statementmodel().First();
  
  
Which avoids the explicit cast and is more intention-revealing.
&gt;</description><link>http://ayende.com/3677/nh-prof-deep-dive-the-integration-test-architecture#comment1</link><guid>http://ayende.com/3677/nh-prof-deep-dive-the-integration-test-architecture#comment1</guid><pubDate>Thu, 06 Nov 2008 17:57:38 GMT</pubDate></item></channel></rss>