Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShouldMapTo url parameters not being recognized #104

Open
danrwhitcomb opened this issue Apr 10, 2014 · 2 comments
Open

ShouldMapTo url parameters not being recognized #104

danrwhitcomb opened this issue Apr 10, 2014 · 2 comments

Comments

@danrwhitcomb
Copy link

Right now I'm trying to pass multiple parameters to the action MyRecentActivity, but when I run the test below, an exception is thrown saying that the first parameter was 0, while it was expecting 1. This the method it should be mapping to:

public Result MyRecentActivity(int offset = 1, int limit = 15){}. 

Could you shed some light on the problem

const string url = "~/MobileServices/Dashboard/Tickets/my_recent_activity/1?limit=15";
url.ShouldMapTo<TicketsController>(x => x.MyRecentActivity(1, 15), "GET");
@panesofglass
Copy link
Member

@ChrisMissal or @pedroreys, any ideas?

@pedroreys
Copy link
Member

Let me take a look, I have a hunch that this might be related to how default arguments values are set on call site at compile time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants