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

Test routes with primitive return types #271

Closed
ivaylokenov opened this issue Feb 27, 2017 · 2 comments
Closed

Test routes with primitive return types #271

ivaylokenov opened this issue Feb 27, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@ivaylokenov
Copy link
Owner

The provided expression is not MethodCallExpression. It uses Convert and it should be unwrapped.

@ivaylokenov ivaylokenov added this to the 1.1.0 milestone Feb 27, 2017
@ivaylokenov ivaylokenov self-assigned this Feb 27, 2017
@ivaylokenov ivaylokenov modified the milestones: 1.1.0, 3.0.0 Dec 9, 2018
@ivaylokenov ivaylokenov modified the milestones: 3.0.0, 2.2.0 Feb 27, 2019
@ivaylokenov ivaylokenov modified the milestones: 2.2.0, 3.0.0 Jul 7, 2019
@ivaylokenov
Copy link
Owner Author

Steps to reproduce:

  • Action: public int Primitive(object id) => (int)id;
  • Test:
MyRouting
    .Configuration()
    .ShouldMap("/Home/Primitive/12")
    .To<HomeController>(c => c.Primitive(12));

The above method does not recognize the id property correctly.

@ivaylokenov
Copy link
Owner Author

Closing since this parameter binding is expected behavior in ASP.NET Core MVC.

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

No branches or pull requests

1 participant