<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>Stephen Walther on ASP.NET MVC - All Comments</title><link>http://weblogs.asp.net/stephenwalther/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>[翻译] ASP.NET MVC Tip #12 – 仿制控制器上下文</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/06/30/asp-net-mvc-tip-12-faking-the-controller-context.aspx#6444195</link><pubDate>Sat, 26 Jul 2008 00:57:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6444195</guid><dc:creator>cnblogs.com</dc:creator><description>&lt;p&gt;ASP.NET MVC Tip #12 &amp;amp;#8211; 仿制控制器上下文 原文地址： &lt;a rel="nofollow" target="_new" href="http://weblogs.asp.net/stephenwalther/archive/2008/06/30/asp"&gt;weblogs.asp.net/.../asp&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6444195" width="1" height="1"&gt;</description></item><item><title>[翻译] ASP.NET MVC Tip #12 – 仿制控制器上下文</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/06/30/asp-net-mvc-tip-12-faking-the-controller-context.aspx#6443999</link><pubDate>Fri, 25 Jul 2008 23:39:07 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6443999</guid><dc:creator>Anders Liu</dc:creator><description>&lt;p&gt;在这个Tip中，Stephen Walther介绍了在为ASP.NET MVC应用程序创建单元测试时，如何深入ASP.NET内部进行测试。Stephen Walther介绍了如何创建一组标准的仿制对象（Fake Object）来模仿当前用户、当前用户角色、请求参数、会话状态和Cookie。&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6443999" width="1" height="1"&gt;</description></item><item><title>re: TDD : Introduction to Moq</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/06/11/tdd-introduction-to-moq.aspx#6443492</link><pubDate>Fri, 25 Jul 2008 19:54:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6443492</guid><dc:creator>yuren1978</dc:creator><description>&lt;p&gt;I tried the code in ProductTest.cs.&lt;/p&gt;
&lt;p&gt;It's a failure:&lt;/p&gt;
&lt;p&gt;Moq.MockVerificationException&lt;/p&gt;
&lt;p&gt;Message: The following expectations were not met:&lt;/p&gt;
&lt;p&gt;ProductRepository p =&amp;gt; p.Get(1)&lt;/p&gt;
&lt;p&gt;Any thoughts.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6443492" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Tip #24 – Retrieve Views from Different Folders</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/07/23/asp-net-mvc-tip-24-retrieve-views-from-different-folders.aspx#6441510</link><pubDate>Fri, 25 Jul 2008 04:10:07 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6441510</guid><dc:creator>Eric Hexter</dc:creator><description>&lt;p&gt;Thanks for stressing the convention. I think it is really important have this been an extreme case for drifting from the convention. &amp;nbsp;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6441510" width="1" height="1"&gt;</description></item><item><title>re: TDD : Introduction to Rhino Mocks</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/03/22/tdd-introduction-to-rhino-mocks.aspx#6439210</link><pubDate>Thu, 24 Jul 2008 14:08:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6439210</guid><dc:creator>Matt Whetton</dc:creator><description>&lt;p&gt;Spent a couple of days trying to get my head around this area and this is simply THE best starter tutorial that exists!!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6439210" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Tip #24 – Retrieve Views from Different Folders</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/07/23/asp-net-mvc-tip-24-retrieve-views-from-different-folders.aspx#6436561</link><pubDate>Wed, 23 Jul 2008 20:07:43 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6436561</guid><dc:creator>Scordi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;yesterday I did a post on my Blog in german language to show how to implement a custom viewlocator which only defines another target folder for the views. In my example its '/MVC/Views'.&lt;/p&gt;
&lt;p&gt;Maybe you want to complete your blog post by mentioning this approach.&lt;/p&gt;
&lt;p&gt;Here is my blogpost:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blog.dotnet-expert.de/2008/07/22/ImplementierenEinesEigenenViewLocatorsF%c3%bcrASPNetMVC.aspx"&gt;blog.dotnet-expert.de/.../ImplementierenEinesEigenenViewLocatorsF%c3%bcrASPNetMVC.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Greet,&lt;/p&gt;
&lt;p&gt;Jens&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6436561" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Tip #24 – Retrieve Views from Different Folders</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/07/23/asp-net-mvc-tip-24-retrieve-views-from-different-folders.aspx#6436389</link><pubDate>Wed, 23 Jul 2008 18:53:02 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6436389</guid><dc:creator>snidersh</dc:creator><description>&lt;p&gt;Good tip. &amp;nbsp;Agreed on the 'never break this rule' bit. &amp;nbsp;Except I break it. &amp;nbsp;My User, Products, etc controllers all, er, control their own Admin actions rather than making a different AdminUser, AdminProducts, etc controller, so I do sub-folder those views. &amp;nbsp;So rather than having a index.aspx and an admin_index.aspx in the same folder. &amp;nbsp;I have an index.aspx and an admin/index.aspx, and I use View(&amp;quot;admin/index&amp;quot;) in the admin_index() action. &amp;nbsp;Breaking the rules? &amp;nbsp;Sure, a little, but it's still crystal clear.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6436389" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Tip #23 – Use POCO LINQ to SQL Entities</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/07/22/asp-net-tip-23-use-poco-linq-to-sql-entities.aspx#6436053</link><pubDate>Wed, 23 Jul 2008 16:32:01 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6436053</guid><dc:creator>fogjuice</dc:creator><description>&lt;p&gt;Here's an interesting explanation of why/how the INotifyPropertyChanging, INotifyPropertyChanged interfaces are used.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://davidhayden.com/blog/dave/archive/2006/05/20/2949.aspx"&gt;davidhayden.com/.../2949.aspx&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6436053" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Tip #15 – Pass Browser Cookies and Server Variables as Action Parameters</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/07/08/asp-net-mvc-tip-15-pass-browser-cookies-and-server-variables-as-action-parameters.aspx#6435869</link><pubDate>Wed, 23 Jul 2008 15:27:15 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6435869</guid><dc:creator>VB</dc:creator><description>&lt;p&gt;Hi Stephen,&lt;/p&gt;
&lt;p&gt;I am new to MVC and was wondering when you pass action parameters Is there any way NOT TO DISPLAY them in the url?&lt;/p&gt;
&lt;p&gt;for eg: &lt;a rel="nofollow" target="_new" href="&lt;a rel="nofollow" target="_new" href="http://localhost/mvcapp/blogs/"&gt;http://localhost/mvcapp/blogs/&lt;/a&gt;24"&gt;localhost/.../24&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;can we display this as&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://localhost/mvcapp/blogs/"&gt;http://localhost/mvcapp/blogs/&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;or maybe some other way where we do not display the parameter to the user?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6435869" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Tip #23 – Use POCO LINQ to SQL Entities</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/07/22/asp-net-tip-23-use-poco-linq-to-sql-entities.aspx#6435719</link><pubDate>Wed, 23 Jul 2008 14:37:22 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6435719</guid><dc:creator>cibrax</dc:creator><description>&lt;p&gt;Hi Stephen,&lt;/p&gt;
&lt;p&gt;In order to have a complete POCO Model, you still have to get rid of the EntityRef and EntitySet collections for associations, which is a bad thing because you lose all the benefits of lazy loading.&lt;/p&gt;
&lt;p&gt;Also, I would not implement the data context initialization in the controller itself, it makes the controller method very hard to test. Specially for all the references to configuration that you have in there.&lt;/p&gt;
&lt;p&gt;Anyway, great work. Thanks&lt;/p&gt;
&lt;p&gt;Pablo.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6435719" width="1" height="1"&gt;</description></item></channel></rss>