Closed kj1981 closed 6 years ago
That's a lot of code to look at.
What's the definition of .GetRemainingAsync()
? Could it be that it has optional parameters (possibly a CancellationToken
?) If so, try specifying explicit values even for those optional parameters (e.g. default(CancellationToken)
).
P.S.: This issue tracker is mainly for Moq bug reports, feature requests, and the like (i.e. its targeted at the further development of Moq). You might be better off asking usage questions on sites like Stack Overflow, as there'll be more people seeing your question.
I dint get usefull response in stackoverlfow so posted here. Where do I need to set CancellationToken. Can you share the example line.
Re-read my first post. I was referring to the last line of code you posted in your question.
This is the first time I am writing test case and I am not sort of stuck and not sure how to proceed further.
I have the following API. In the below sample I have 2 endpoints which I want to perform testing.
Below is the xUnit project that I added. Here I am using Moq to mock up my AWS connection and others. Questions are below in comments against the code.
Above I am getting the error as: An expression tree may not contain a call or invocation that uses optional arguments
This is on line