Note that there are some explanatory texts on larger screens.

plurals
  1. POMvcIntegrationTestFramework or an alternative updated for ASP.NET MVC 3
    text
    copied!<p>I'm interested in using Steve Sanderson’s <a href="http://blog.stevensanderson.com/2009/06/11/integration-testing-your-aspnet-mvc-application/" rel="noreferrer">MvcIntegrationTestFramework</a> <strong>or a very similar alternative</strong> with ASP.NET MVC 3 Beta.</p> <p>Currently when compiling <strong>MvcIntegrationTestFramework</strong> against MVC 3 Beta I get the following error due to changes in MVC:</p> <p><code>Error 6</code> <code>'System.Web.Mvc.ActionDescriptor.GetFilters()' is obsolete: '"Please call System.Web.Mvc.FilterProviders.Providers.GetFilters() now."'</code> <code>\MvcIntegrationTestFramework\Interception\InterceptionFilterActionDescriptor.cs Line 18</code></p> <h2>Questions</h2> <h3>1. Can anybody provide the MvcIntegrationTestFramework working for ASP.NET MVC 3 Beta?</h3> <p>--- and / or ---</p> <h3>2. Are there similar alternatives you would recommend?</h3> <hr> <p><strong>EDIT #1:</strong> Note I have e-mailed Steve the creator of MvcIntegrationTestFramework, also hoping for some feedback there.</p> <p><strong>EDIT #2 &amp; #3:</strong> I have received a message from Steve. Quoted for your reference:<br> <em>I haven't needed to use that project with MVC 3, so sorry, I don't have an updated version of it. As far as I'm aware it should be possible to update it to work on MVC 3, but you'd need to figure that out perhaps by inspecting the MVC 3 source code to notice any changes in how actions, filters, etc are invoked now. If you do update it, and if you decide to adopt it as an ongoing project (e.g., putting it on Github or similar), let me know and I'll post a link to it!</em> (Thanks Steve!)</p> <p><strong>EDIT #4:</strong> Honestly had a quick stab at using <code>System.Web.Mvc.FilterProviders.Providers.GetFilters()</code> didn't get anywhere fast and simply adding the <code>[Obsolete]</code> found that there was an error in the internals of the MVC requests. Anybody else had a dabble?</p> <p><strong>EDIT #5:</strong> Please comment if you are using an alternative Integration Test Framework with MVC 3. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload