Skip to content

ShouldMapTo url parameters not being recognized #104

Open
@danrwhitcomb

Description

@danrwhitcomb

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");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions