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 is not working when route returns basic types #269

Open
ghost opened this issue Feb 26, 2017 · 1 comment
Open

Test is not working when route returns basic types #269

ghost opened this issue Feb 26, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Feb 26, 2017

I have a very basic test controller:

public class StatusController : ApiController { [HttpGet] public bool IsAlive() { return true; } }

And the following test will throw an exception:

`
var route = "/api/Status/IsAlive";

        MyWebApi
            .Routes()
            .ShouldMap(route)
            .To<StatusController>(c => c.IsAlive());`

since it cannot convert the lambda expression to a MethodCallExpression.

@ivaylokenov ivaylokenov self-assigned this Feb 27, 2017
@ivaylokenov ivaylokenov added this to the Version 1.3 milestone Feb 27, 2017
@ivaylokenov
Copy link
Owner

@alz86 I will take a look, thank you!

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