You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
server
.Given(
Request
.Create()....)
.RespondWith(
Response
.Create().....
.WithBodyFromFile(fileName));
the mocked endpoint can only be called successfully the first time. Second time it will throw an error.
This is caused by the fact that the property BodyData.BodyAsFile is set to null right after the first successful response, causing an ArgumentNullException the second time. This happens in the Response class.
The text was updated successfully, but these errors were encountered:
When you use a setup as follows:
the mocked endpoint can only be called successfully the first time. Second time it will throw an error.
This is caused by the fact that the property
BodyData.BodyAsFile
is set tonull
right after the first successful response, causing anArgumentNullException
the second time. This happens in theResponse
class.The text was updated successfully, but these errors were encountered: