我目前正在将ASP.NET MVC的预览版2更新到Beta版本的过程中。经过详尽的搜索,我找到了最后一次编译错误,网站没有解决方案。我在Global.asax.cs中一些代码,使用温莎容器设置IOC: ControllerBuilder.Current.SetControllerFactory(typeof(WindsorControllerFactory));
编译器抱怨说: The typ
我正在为控制器进行单元测试,这是我的代码。 public void DocumentController_IndexMethod_ShouldReturn_Documents()
{
DocumentsController c = new DocumentsController(_repository);
ViewResult result = (ViewRes