Closed bapti closed 9 years ago
Right now it only supports post body as form-url encoded. WithJsonBody(string body) is something that I will have a look at soon.
I have started to have a look at the json body parsing. The easiest way is to take a dependency on Newtonsoft.Json via nuget. This shouldn't be a problem, right?
Fine for me, that's the library that MVC uses for its default json parser I believe.
On Mon, Oct 28, 2013 at 2:11 PM, Anthony Steele notifications@github.comwrote:
I have started to have a look at the json body parsing. The easiest way is to take a dependency on Newtonsoft.Json via nuget. This shouldn't be a problem, right?
— Reply to this email directly or view it on GitHubhttps://github.com/AnthonySteele/MvcRouteTester/issues/24#issuecomment-27214297 .
Thanks again for the great library, it's been a brilliant help for us preventing regressions.
On Mon, Oct 28, 2013 at 2:46 PM, Neil Crawford neil.crawford@gmail.comwrote:
Fine for me, that's the library that MVC uses for its default json parser I believe.
On Mon, Oct 28, 2013 at 2:11 PM, Anthony Steele notifications@github.comwrote:
I have started to have a look at the json body parsing. The easiest way is to take a dependency on Newtonsoft.Json via nuget. This shouldn't be a problem, right?
— Reply to this email directly or view it on GitHubhttps://github.com/AnthonySteele/MvcRouteTester/issues/24#issuecomment-27214297 .
Hi, I was just wondering if you added this in the end?
Sorry, I got caught up in other things. And getting this lib to work on ASP MVC 5.1/WebApi 2.1 is the enxt step.
The json body parsing is in the code now. Lists aren't working though. I have a couple of failing test and will look at how to do this; it doesn't look like a trival thing though.
@anthony
Is that on a branch anywhere?
I have made a ListTests branch https://github.com/AnthonySteele/MvcRouteTester/tree/ListTests
Hi,
It would be useful to have an example in the tests of how to test a method that takes a list
I'm working on it now building the list into a query string but it would be useful if "withbody" would accept json perhaps?
Or something like this would be good
Or even