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:
Moreover, when I use ReceiveString, everything works fine and I receive data.
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:
Moreover, when I use ReceiveString, everything works fine and I receive data.