tmenier / Flurl

Fluent URL builder and testable HTTP client for .NET
https://flurl.dev
MIT License
4.23k stars 387 forks source link

Strange ReceiveJson<T> behavior. #739

Closed vldmrklnk closed 1 year ago

vldmrklnk commented 1 year ago

I faced with problem when had been writing an integration tests for methods which use flurl query builder. When I run the application, all work fine. I provide data to query parameters, add data to body and ReceiveJson works perfect. Then I added project for tests into solution and have started to write integration tests. I create object of my service, provide the same data to testing method. And all works fine during building of the query, but then ReceiveJson returns me response with model where all fields are null. And test shows me this exception: image

Moreover, when I use ReceiveString, everything works fine and I receive data.

vldmrklnk commented 1 year ago

Issue was resolved. The problem was because of logic of an app.