tag:blogger.com,1999:blog-8855309457097909737.post1351234465643765538..comments2023-08-07T15:03:48.887+02:00Comments on Circles & Crosses blog archive: Mocking HtmlHelper in ASP.NET MVC RC1 using MoqHåvardhttp://www.blogger.com/profile/11763332322633056464noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-8855309457097909737.post-17168320372977950622009-08-05T21:10:19.000+02:002009-08-05T21:10:19.000+02:00But I'm presuming the "viewData" var...But I'm presuming the "viewData" variable on line 15 was intended to be "vd".Stevenoreply@blogger.comtag:blogger.com,1999:blog-8855309457097909737.post-66837904786467472462009-08-05T21:05:12.000+02:002009-08-05T21:05:12.000+02:00This code does not compile because the viewData va...This code does not compile because the viewData variable on line 15 does not exist.Stevenoreply@blogger.comtag:blogger.com,1999:blog-8855309457097909737.post-76136929819700944102009-08-09T03:04:49.000+02:002009-08-09T03:04:49.000+02:00Thanks for spotting, updated now.Thanks for spotting, updated now.Håvardhttp://ox.nonoreply@blogger.comtag:blogger.com,1999:blog-8855309457097909737.post-43659154203273305372010-08-13T00:41:26.000+02:002010-08-13T00:41:26.000+02:00Eric,check out a version for MVC 2 and 3 in this n...Eric,<br><br>check out a version for MVC 2 and 3 in <a href="/posts/mocking-htmlhelper-in-asp-net-mvc-2-and-3-using-moq" rel="nofollow">this new post</a>.Håvardhttp://ox.nonoreply@blogger.comtag:blogger.com,1999:blog-8855309457097909737.post-90048777419986339312010-08-10T20:04:22.000+02:002010-08-10T20:04:22.000+02:00Hi, I've been trying to use your code, but I a...Hi, I've been trying to use your code, but I am having some problems when HtmlHelper is instanciated.<br><br>I've detailed the problem here: http://stackoverflow.com/questions/3445770/missingmethodexception-thrown-when-trying-to-mock-htmlhelper-with-moq<br><br>apparently the ViewContext constructor's signature has changed, but even when supplying an updated Mock, I'm seeing a MissingMethodException being thrown.Erichttp://www.vertigo.comnoreply@blogger.com