public void GenerateActionWithOnePathParameterAndBodyJustReturnPathParameterSignature()
    {
        var handler = new RequestHandlerFake(
            Method.Get,
            "/user/{userId}",
            new List <IParameterResolver> {
            ParameterResolver.Path <string>(0), ParameterResolver.Body <NameData>()
        });

        Assert.Equal("String userId", handler.ActionSignature);
    }
    public void GenerateActionSignatureWithOnePathParameterReturnsSignatureWithOneParam()
    {
        var handler = new RequestHandlerFake(
            Method.Get,
            "/user/{userId}",
            new List <IParameterResolver> {
            ParameterResolver.Path <string>(0)
        });

        Assert.Equal("String userId", handler.ActionSignature);
    }
    public void GenerateActionWithTwoPathParameters()
    {
        var handler = new RequestHandlerFake(
            Method.Get,
            "/user/{userId}/comment/{commentId}",
            new List <IParameterResolver> {
            ParameterResolver.Path <string>(0), ParameterResolver.Path <int>(0)
        });

        Assert.Equal("String userId, Int32 commentId", handler.ActionSignature);
    }
    public void GenerateActionSignatureWhenNoPathIsSpecifiedIsEmptyString()
    {
        var handler = new RequestHandlerFake(
            Method.Get,
            "/hello",
            new List <IParameterResolver> {
            ParameterResolver.Body <NameData>()
        });

        Assert.Equal("", handler.ActionSignature);
    }