Chris Canal

A Scottish .NET Developer

  Home  |   Contact  |   Syndication    |   Login
  23 Posts | 0 Stories | 34 Comments | 0 Trackbacks

News

Twitter












Archives

Post Categories

aspnetmvc

Recently I’ve been working a lot with the new ASP.NET MVC framework, with Preview 1 (bleh) and the interim drop, Pre-Preview 3? The ActionResult is a fantastic addition, making the framework far easier to test. However, I noticed I was basically doing the same thing for each test: [Test] public void TestSomething() { var actionResult = controllerUT.Something() as RenderViewResult; If ( actionResult == null ) Assert.Fail(“ActionResult was null.”); Assert.That(actionResult.Vi... Is.EqualTo(“ViewName”));...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

I've just upgraded to the latest version interim drop of the MVC framework and MVC Contrib (which I can't seem to build from source using NAnt...). Everything appeared to be ok, except for one thing: a controller action that uploads a file was now throwing an error: cannot convert from 'System.Web.HttpPostedFileB... to 'System.Web.HttpPostedFile' After a few seconds of confusion I quicky dawned on me that this might be a very good thing. A quick look at the System.Web.Abstractions confirmed my throughts,...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati