Page view counter

Where is TestViewEngine class?

Last post 12-11-2007 3:59 AM by Haacked. 5 replies.

Sort Posts:

  • Where is TestViewEngine class?

    12-10-2007, 12:31 AM
    • Loading...
    • ChrisTorng
    • Joined on 09-14-2005, 6:44 AM
    • Posts 10
    • Points 27

    I tried to follow the steps in ASP.NET MVC Framework (Part 1), but I can't found TestViewEngine class in ProductControllTest.Detail(). I tried to write my own one but still failed. Where can I find it?

  • Re: Where is TestViewEngine class?

    12-10-2007, 4:56 AM
    • Loading...
    • rolkey
    • Joined on 12-10-2007, 9:53 AM
    • Posts 1
    • Points 2

    http://svn.castleproject.org:8080/svn/castle/trunk/MonoRail/Castle.MonoRail.Framework.Tests/Configuration/ViewEngineConfigTestCase.cs

    But I Don't Find "ViewEngineBase" class.
     

  • Re: Where is TestViewEngine class?

    12-10-2007, 8:05 AM
    • Loading...
    • JamesSteele
    • Joined on 12-10-2003, 5:56 AM
    • Ottawa
    • Posts 34
    • Points 194

    Hi rolkey,

    The ViewEngineBase class is located in the namespace Castle.MonoRail.Framework which is part of the Castle.MonoRail.Framework.dll.

    What assembly version are you using? Is it 1.0.3.0?

    James Steele
  • Re: Where is TestViewEngine class?

    12-10-2007, 8:09 AM
    • Loading...
    • JamesSteele
    • Joined on 12-10-2003, 5:56 AM
    • Ottawa
    • Posts 34
    • Points 194

    Hi ChrisTorng,

    TestViewEngine class is part of the MonoRail MVC Web Framework (by castle project). You can download it here.

    James Steele
  • Re: Where is TestViewEngine class?

    12-10-2007, 9:08 PM
    • Loading...
    • ChrisTorng
    • Joined on 09-14-2005, 6:44 AM
    • Posts 10
    • Points 27

    I had searched it before, but thinking that it's another project with the same naming... Because Extensions is a really new release (just one day to me), I think there are not any related library outside Microsoft currently. But if you promise the MVC structure is easy to test, then you should include something that is really easy like TestViewEngine inside Extensions... I don't like to install another not final, not Microsoft software just for a dummy test that should be as simple as possible...

  • Re: Where is TestViewEngine class?

    12-11-2007, 3:59 AM
    Answer
    • Loading...
    • Haacked
    • Joined on 09-17-2003, 10:43 AM
    • Posts 377
    • Points 4,901
    • AspNetTeam

    That was a private class that Scott wrote way before the CTP, so it wouldn't work now. I wrote a blog post recently that outlines how to do unit testing with ASP.NET MVC. Check it out and see if it helps.

    Phil Haack (http://haacked.com/)
    Senior Program Manager, Microsoft

    What wouldn’t you do for a Klondike bar?
Page 1 of 1 (6 items)