<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Hitchhiker guide to enterprise development : .Net</title><link>http://blogs.msdn.com/davidhernandez/archive/tags/.Net/default.aspx</link><description>Tags: .Net</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>4 hours with Silverlight (and Hosting)</title><link>http://blogs.msdn.com/davidhernandez/archive/2008/11/05/4-hours-with-silverlight-and-hosting.aspx</link><pubDate>Thu, 06 Nov 2008 00:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9045245</guid><dc:creator>davidhernandez</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/davidhernandez/comments/9045245.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidhernandez/commentrss.aspx?PostID=9045245</wfw:commentRss><wfw:comment>http://blogs.msdn.com/davidhernandez/rsscomments.aspx?PostID=9045245</wfw:comment><description>After watching some of the great tutorial videos in Silverlight.net I decided to play a little bit with Silverlight 2 and VS2008. It is incredible all the funcionality that offers Silverlight with a plugin of 4.5 MB (WCF, Drawing, DataBinding, Linq ....)...(&lt;a href="http://blogs.msdn.com/davidhernandez/archive/2008/11/05/4-hours-with-silverlight-and-hosting.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9045245" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/davidhernandez/archive/tags/.Net/default.aspx">.Net</category><category domain="http://blogs.msdn.com/davidhernandez/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>First impressions of Visual Studio 2008</title><link>http://blogs.msdn.com/davidhernandez/archive/2007/12/18/First-impressions-of-Visual-Studio-2008.aspx</link><pubDate>Wed, 19 Dec 2007 01:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6800308</guid><dc:creator>davidhernandez</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/davidhernandez/comments/6800308.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidhernandez/commentrss.aspx?PostID=6800308</wfw:commentRss><wfw:comment>http://blogs.msdn.com/davidhernandez/rsscomments.aspx?PostID=6800308</wfw:comment><description>Now that there is a new release of Visual Studio I wanted to take a closer look at it to see which are the improvements and new features. I really wanted to get to the new stuff about Linq and the .Net framework 3.5. But I got lost fiddling with the new...(&lt;a href="http://blogs.msdn.com/davidhernandez/archive/2007/12/18/First-impressions-of-Visual-Studio-2008.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6800308" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/davidhernandez/attachment/6800308.ashx" length="18701" type="application/x-zip-compressed" /><category domain="http://blogs.msdn.com/davidhernandez/archive/tags/.Net/default.aspx">.Net</category></item><item><title>.Net Framework Source Code released</title><link>http://blogs.msdn.com/davidhernandez/archive/2007/10/03/net-framework-source-code-released.aspx</link><pubDate>Thu, 04 Oct 2007 00:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5268203</guid><dc:creator>davidhernandez</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/davidhernandez/comments/5268203.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidhernandez/commentrss.aspx?PostID=5268203</wfw:commentRss><wfw:comment>http://blogs.msdn.com/davidhernandez/rsscomments.aspx?PostID=5268203</wfw:comment><description>The .Net Framework 3.5 Source Code will be released later this year. (announced in http://weblogs.asp.net/scottgu/archive/2007/10/03/releasing-the-source-code-for-the-net-framework-libraries.aspx ) This isn't going to be a major revolution since the code...(&lt;a href="http://blogs.msdn.com/davidhernandez/archive/2007/10/03/net-framework-source-code-released.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5268203" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/davidhernandez/archive/tags/.Net/default.aspx">.Net</category></item><item><title>Mad.Nug Event Enterprise Library 3.1</title><link>http://blogs.msdn.com/davidhernandez/archive/2007/06/16/mad-nug-event-enterprise-library-3-1.aspx</link><pubDate>Sat, 16 Jun 2007 19:50:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3342881</guid><dc:creator>davidhernandez</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/davidhernandez/comments/3342881.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidhernandez/commentrss.aspx?PostID=3342881</wfw:commentRss><wfw:comment>http://blogs.msdn.com/davidhernandez/rsscomments.aspx?PostID=3342881</wfw:comment><description>I will be speaking about the new version of Enterprise Library 3.1 at the madrid .Net User group event in July 19. It is a two hour dynamic presentation with demos where people can participate, ask questions or share their oppinions/experiences. The madNug...(&lt;a href="http://blogs.msdn.com/davidhernandez/archive/2007/06/16/mad-nug-event-enterprise-library-3-1.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3342881" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/davidhernandez/archive/tags/.Net/default.aspx">.Net</category><category domain="http://blogs.msdn.com/davidhernandez/archive/tags/Enterprise+Library/default.aspx">Enterprise Library</category></item><item><title>Encrypting long text asymmetrically</title><link>http://blogs.msdn.com/davidhernandez/archive/2007/06/13/encrypting-long-text-assymetrically.aspx</link><pubDate>Wed, 13 Jun 2007 10:02:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3262775</guid><dc:creator>davidhernandez</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/davidhernandez/comments/3262775.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidhernandez/commentrss.aspx?PostID=3262775</wfw:commentRss><wfw:comment>http://blogs.msdn.com/davidhernandez/rsscomments.aspx?PostID=3262775</wfw:comment><description>One of the recurring tasks that everybody has made in every programming language has been asymmetric encryption. With .Net it is very simple to encrypt data, it is well documented and there are lots of blogs and articles, but people still run into two...(&lt;a href="http://blogs.msdn.com/davidhernandez/archive/2007/06/13/encrypting-long-text-assymetrically.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3262775" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/davidhernandez/attachment/3262775.ashx" length="9702" type="application/x-zip-compressed" /><category domain="http://blogs.msdn.com/davidhernandez/archive/tags/.Net/default.aspx">.Net</category></item><item><title>Policy Injection App. Block simple sample</title><link>http://blogs.msdn.com/davidhernandez/archive/2007/06/04/policy-injection-app-block-simple-sample.aspx</link><pubDate>Mon, 04 Jun 2007 19:14:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3083092</guid><dc:creator>davidhernandez</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/davidhernandez/comments/3083092.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidhernandez/commentrss.aspx?PostID=3083092</wfw:commentRss><wfw:comment>http://blogs.msdn.com/davidhernandez/rsscomments.aspx?PostID=3083092</wfw:comment><description>Now with the new version of Enterprise Library 3.0 we can play with Aspect Oriented Programming. The goal of AOP is to insert some functionality that is not "business related" without altering the existing code or to make it flexible enough so changes...(&lt;a href="http://blogs.msdn.com/davidhernandez/archive/2007/06/04/policy-injection-app-block-simple-sample.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3083092" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/davidhernandez/attachment/3083092.ashx" length="13509" type="application/x-zip-compressed" /><category domain="http://blogs.msdn.com/davidhernandez/archive/tags/.Net/default.aspx">.Net</category></item><item><title>Programmatically accessing to OWA through Web Dav</title><link>http://blogs.msdn.com/davidhernandez/archive/2006/12/01/access-to-owa-programmatically-through-web-dav.aspx</link><pubDate>Fri, 01 Dec 2006 18:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1185257</guid><dc:creator>davidhernandez</dc:creator><slash:comments>21</slash:comments><comments>http://blogs.msdn.com/davidhernandez/comments/1185257.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidhernandez/commentrss.aspx?PostID=1185257</wfw:commentRss><wfw:comment>http://blogs.msdn.com/davidhernandez/rsscomments.aspx?PostID=1185257</wfw:comment><description>Hello, I have been playing around a couple of days with WebDav and I found it really interesting how simple it was to retrieve and modify messages from OWA. WebDav (World Wide Web Distributed Authoring and Versioning) is a standard that help us edit and...(&lt;a href="http://blogs.msdn.com/davidhernandez/archive/2006/12/01/access-to-owa-programmatically-through-web-dav.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1185257" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/davidhernandez/archive/tags/.Net/default.aspx">.Net</category></item><item><title>Enterprise Library v3 Roadmap</title><link>http://blogs.msdn.com/davidhernandez/archive/2006/10/05/Enterprise-Library-v3-Roadmap.aspx</link><pubDate>Fri, 06 Oct 2006 00:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:794649</guid><dc:creator>davidhernandez</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/davidhernandez/comments/794649.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidhernandez/commentrss.aspx?PostID=794649</wfw:commentRss><wfw:comment>http://blogs.msdn.com/davidhernandez/rsscomments.aspx?PostID=794649</wfw:comment><description>&lt;P&gt;Ok. We are all set, after a phase of feedback and polls&amp;nbsp;here it comes the new features of the EntLib.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="http://blogs.msdn.com/tomholl/archive/2006/09/26/773213.aspx"&gt;http://blogs.msdn.com/tomholl/archive/2006/09/26/773213.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I'm pretty happy with all the changes, since there are no radical changes so migration will be smooth and easy (hopefully), but it also comes with many and very wanted improvements like DAAB richer transactions, WCF support and many Config tool improvements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Enjoy&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=794649" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/davidhernandez/archive/tags/.Net/default.aspx">.Net</category></item><item><title>Mocking HttpContext</title><link>http://blogs.msdn.com/davidhernandez/archive/2006/09/21/Mocking-HttpContext-object.aspx</link><pubDate>Thu, 21 Sep 2006 20:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:764991</guid><dc:creator>davidhernandez</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/davidhernandez/comments/764991.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidhernandez/commentrss.aspx?PostID=764991</wfw:commentRss><wfw:comment>http://blogs.msdn.com/davidhernandez/rsscomments.aspx?PostID=764991</wfw:comment><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;I have been working on a proof of concept of unit testing with Visual Studio Team System for one of my clients. They were already familiar with the term unit testing, but up to now they have only seen some presentations/demos about it but they are quite unsure how to use it in their projects, so they asked for a PoC in order to see how the unit testing would like with the particularities of their code.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;As I started I couldn't see any "oddities" about their code, they had some database access layer components (which there are already tons of articles about how to test them), business components and so on....&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;But after testing a couple of components I found out that in some of their components they were using the HttpContext. So I decided to create a new object of such type and use it like a normal mock object filling their collections (forms, query string and session) with custom data. But I found out that it wasn't as easy as it seemed and even if you manage to create an HttpContext object you will find out that many other objects used inside it are read-only or internal so you can barely modify this object.&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;So, my first thought was to search in the web to see how other guy had run into the same problem and had created a class that creates a Mock HttpContext object. Unfortunately I found many forums with guys with my same problem, a couple of articles that solved partially the problem (they could only manipulate the cache collection) and other that used a non-free third party component.&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;Since I couldn't find out any already made component that did such I had to create one from scratch ... The only problems were to create objects that were declared as internals or overriding read-only collections. The solution was to use my favorite namespace (reflection). I also used the reflector tool to see the implementation of the HttpContext object to see how to "inject" my own collection in the place of the read-only collections.&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;I attached the code to create the Mock HttpContext, My purpose was not to lose a lot of time so don't expect to have a perfect class with all the properties/methods finished. At least, in my case, it solved all the problems. If you find out some problem that doesn't solve this component, or want some more explanations about how the component works, don't hesitate to contact me.&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;Enjoy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=764991" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/davidhernandez/attachment/764991.ashx" length="3710" type="application/x-zip-compressed" /><category domain="http://blogs.msdn.com/davidhernandez/archive/tags/.Net/default.aspx">.Net</category><category domain="http://blogs.msdn.com/davidhernandez/archive/tags/TTD/default.aspx">TTD</category></item></channel></rss>