2
votes
0answers
41 views

How to ensure that JS anonymous objects continue to map onto POCO ViewModels

We have an ASP.NET MVC application that extensively uses AJAX calls. These AJAX calls send data to our controller method - this controller method requires an argument which is a simple POCO ViewModel ...
2
votes
0answers
788 views

How to unit test a controller that calls Url.Action using AutoMockContainer?

This question is very similar to 674458 but I really want to use the AutoMockContainer in my unit tests. I cannot figure out how to setup up my context. Has anyone been able to unit test a controller ...
1
vote
0answers
29 views

Using / Mocking Request.Url when using MvcContrib TestHelper

I'm using MvcContrib.TestHelper, and initialize my controller like this: var accountController = new AccountController(); var builder = new TestControllerBuilder(); ...
1
vote
0answers
78 views

Asp.net MVC empty ViewResultBase.Model

I read a book Pro ASP.NET MVC 3 Framework. I have a little problem with unit test. When i run this test, it not passed because result variable is null. // Arrange // - ...
1
vote
0answers
301 views

Why visual studio perform skipping tests?

I try to run Visual Studio tests in ASP.NET MVC by pressing "Run All" but all tests was skipped, why it happend, how to run all tests? Here is screenshot:
1
vote
0answers
52 views

Expression Equality or Equivalence from Multiple Projects

It is understood that: Expression<Func<string, bool>> first = x => x.Length == 4; Expression<Func<string, bool>> second = x => x.Length == 4; ...
1
vote
0answers
157 views

Is this a bug in the MvcContrib TestHelper OutBoundUrl class?

I am trying to test the outbound URL of an action method in an MVC area using the MvcContrib TestHelper's static OutBoundUrl class. Here is what I have: OutBoundUrl.Of<ErrorsController>(action ...
0
votes
0answers
24 views

Testing view's arguments to controller actions?

I have code like this in one of my views: @Html.ActionLink("Remove", "RemoveWidget", "WidgetSet", new { widgetSetToWidgetMapId = item.MapRepositoryId, ...
0
votes
0answers
10 views

RESX Resource IO Issue from unit test

The Action method that i have is something like this - public ActionResult Index(Guid id) { ..... string resourseValue = Resources.UIResource.ViewName; ..... } When i am trying to unit ...
0
votes
0answers
86 views

ASP.Net Mvc Controller testing using Moq

I have some legacy Asp.net MVC code where a private variable is set within the OnActionExecuting method as follows. protected override void OnActionExecuting(ActionExecutingContext filterContext) { ...
0
votes
0answers
21 views

MvcMailer in unit test

I'd like to unit-test a method which is calling a method from the MvcMailer. I get the following error message: ArgumentNullException was unhandled by user code. Value cannot be null. Parameter ...
0
votes
0answers
139 views

Guidline for Writing Efficient Unit Tests for ASP.NET MVC/Web API

I took that long and difficult step in making my ASP.NET MVC / Web API project testable. I am now feeling fairly comfortable with dependency injection, inversion of control, the repository / unit of ...
0
votes
0answers
107 views

does vs2012 load test make a loop in a webtest parallel?

I have created a webtest that call a web-service with changing id in its query string. I don't manage to execute 1000 parallel calls using load test (in the summary it shows that only 100 calls ...
0
votes
0answers
46 views

Amazon email delivery notification

I am using Amazon Simple Email service to send email. Can i get email delivery notification in case of failure occur in sending process when use Amazon webservices? If so can you please tell me how to ...
0
votes
0answers
37 views

Nunit execution Process

I am running my unit test using nunit.exe. The first time it runs successfully. When I click the run button the second time it gives the following error. In The first route in the global.aspx file. ...

1 2 3 4 5
15 30 50 per page