Moq.Dapper icon indicating copy to clipboard operation
Moq.Dapper copied to clipboard

Needs SetupSequential Support.

Open benMain opened this issue 7 years ago • 4 comments

If I need to use the same IDBConnection to make sequential calls within the scope of a given test, can one Mock object support multiple SetupDapper(db => db.Query()) calls. It appears not.

benMain avatar Apr 18 '18 19:04 benMain

When I have a moment I will look into this, but feel free to submit a PR attempting to fix it and I will be happy to review it.

UnoSD avatar Apr 26 '18 12:04 UnoSD

@UnoSD - I also have this need. It looks like the current implementation just looks at the method name of the calling expression body and not the argument constraints. Unfortunately, that's as far as I have gotten and have no clue where to start in order to begin working on a PR attempting to fix.

hunterjm avatar May 09 '18 01:05 hunterjm

+1

Yousefjb avatar Jun 26 '18 11:06 Yousefjb

@UnoSD Greetings, is there a workaround for this use case?

afriedma avatar Dec 09 '20 20:12 afriedma