How to mock SelectObjectContent async call. #3453
-
I am trying to mock the s3client.SelectObjectContentAsync. I am not able to figure out how to do that. Please help. I was able to mock the GetObjectAsync. I tried stackoverflow as well. I could not find examples for c#. I could find for java and go. I have put the code below which i have tried. Please check the method "GetSelectObjectContentResponse"
Below is the error message |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Found the solution. Mock the interface "ISelectObjectContentEventStream" with a constructor to pass IS3Event.
|
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Found the solution. Mock the interface "ISelectObjectContentEventStream" with a constructor to pass IS3Event.