mvccontrib-testhelper
T4MVC and testing with MvcContrib.TestHelpers issues with static linked content
I\'m trying to write some tests around some code previously written before I start mucking with it.I\'m running into issues where the controller method references some of the static variables that T4M[详细]
2023-04-08 13:18 分类:问答Can I use Moq with MvcContrib.TestHelper?
I\'m working on my first ASP .NET MVC project and prior to this moment I\'ve only used Rhino.Mocks for desktop applications.[详细]
2023-03-16 04:20 分类:问答How to verify the parameter of an action method with MVCContrib Route TestHelper
I have an action method which has pagination object as parameter public override ActionResult Index(Paging paging)[详细]
2023-02-19 08:38 分类:问答Testing an Edit view with MVCContrib Test Helper
I am using ASP.NET MVC 3, MVCContrib, NUnit and Rhino Mocks.I have posted this but could not get an answer.People are focusing more on my coding that helping me get a decent answer to get this test to[详细]
2023-02-09 17:59 分类:问答Mvcontrib.MVC3.Testhelper UpdateModel NullReferenceExceuption during Unit Test
I am trying to unit test an edit action on my controller in ASP.NET MVC 3. I have installed Mvcontrib.MVC3.TestHelper via nuget to mock out my controller Context but I am still getting a NullReferenc[详细]
2023-02-08 06:54 分类:问答Testing a get action with view model
I have the following controller action: public ActionResult Edit(int id) { var news = newsRepository.GetNewsByID(id);[详细]
2023-02-05 05:52 分类:问答anyway to install mvccontrib.testhelper with nuget
I have installed mvccontrib using nuget with the usual install-package mvccontrib, but i notice there is no testhelper there. Is there some other way or 开发者_JAVA技巧flag that i have to use to insta[详细]
2023-02-03 20:05 分类:问答MVCContrib TestHelper problem with session.clear, session.abandon and Rhino Mock
Hi I\'m trying to unit test my logout action on my controller but I have hard times to test or stub my Session in the HttpContext. I\'m using MVC Contrib TestHelper to make it easier but now I need a[详细]
2023-02-03 06:05 分类:问答Unit Test Controller with PerWebRequest LifeStyle dependency
I am trying to write a unit test for a controller that has a dependency on a type whose lifestyle is \"PerWebRequest\".[详细]
2023-02-03 01:28 分类:问答MvcContrib TestHelper giving an odd error when using AssertViewRendered
I am trying to use the MvcContrib Test Helper to test a controller method in MVC3. The controller: public class HomeController : Controller[详细]
2023-01-29 17:05 分类:问答