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

Support RequestBody #678

Merged
merged 10 commits into from
Nov 17, 2021
Merged

Support RequestBody #678

merged 10 commits into from
Nov 17, 2021

Conversation

leolplex
Copy link
Contributor

@leolplex leolplex commented Nov 5, 2021

Hello @StefH,

I'm trying to add the support to request body, I'm following the same logic used in the response, I'm facing a problem when I try to use BodyAsJson in the RequestModel 'cause it does not exist, I'm using Body but it does not work as I expected, could you have idea why it is happening?

I appreciate your help.

@StefH
Copy link
Collaborator

StefH commented Nov 5, 2021

Can you merge/rebase master into this branch ?

@leolplex
Copy link
Contributor Author

leolplex commented Nov 8, 2021

Hello @StefH ,

Please skip my first comment I found a solution cast the object with JsonConvert.SerializeObject and change the matcher to JsonMatcher, please check the last commit.
Thanks.

@StefH
Copy link
Collaborator

StefH commented Nov 16, 2021

@leolplex
Can you take a look at my comments?

@leolplex
Copy link
Contributor Author

@leolplex Can you take a look at my comments?

@StefH
I am no able to see your comments.

@StefH StefH self-requested a review November 16, 2021 20:00
@leolplex leolplex requested a review from StefH November 16, 2021 20:09
@leolplex
Copy link
Contributor Author

@StefH comments applied!

@leolplex leolplex requested a review from StefH November 16, 2021 20:14
@StefH
Copy link
Collaborator

StefH commented Nov 16, 2021

@leolplex
I'll merge tomorrow and create a new NuGet

@leolplex
Copy link
Contributor Author

@leolplex I'll merge tomorrow and create a new NuGet

Thanks a lot @StefH 👍

@StefH StefH merged commit 32ddd48 into WireMock-Net:master Nov 17, 2021
@leolplex leolplex deleted the SupportRequestBody branch November 17, 2021 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants