Comments (4)
Verify( ) support is highly desired.
from moq.dapper.
I won't happen soon as I find myself with less and less time and there are only two "active" (not really) contributors to this repo counting me as one; you are absolutely right though, there should be a way of verifying the calls and it shouldn't be that hard to implement, I will get to it as soon as I have the chance.
from moq.dapper.
I would like to contribute and work on verify. Spent an hour looking around figured my first stab would be to create a VerifyDapper(exp) extension method that crawls the stack looking for the command object that matches the expression, then call verify.
Is that the best way to tackle this issue?
cnn.VerifyDapper(x=>x.foo(It.IsAny<int>()),Times.Once);
from moq.dapper.
@EricRohlfs thank you for your interest in contributing.
what do you mean by "crawling the stack"?
If I had to implement it, I would probably store the details of each call on the mock object and have the logic in "VerifyDapper" to parse the expression and try and find the details in the storage (dictionary or whatever in memory storage). Possibly it would help to see how Moq does it for other stuff.
from moq.dapper.
Related Issues (20)
- When writing a test for query which has .Any method it throws an error Value cannot be null
- issue with DateTime in Core3.1 (works on 2.1)
- QuerySingleOrDefault cannot return null HOT 1
- QueryFirstAsync<string> doesn't work and throws sequence contains no elements error HOT 2
- Cannot moq 'Execute' after mocking 'QuerySingle<int>'
- How to Moq QueryMultipleAsync HOT 2
- ObjectExtensions - ToDataTable does not support string HOT 1
- QueryAsync<Dynamic> HOT 4
- Cannot mock ExecuteAsync for IDbConnection HOT 1
- Cannot QueryFirstAsync with Enum Type
- Can't query Tuples. Requires wrapping class type.
- One Approach to Moq dapper methods that not supported by this project
- No Support for ExecuteAsync on IDBConnection
- ExecuteScalarAsync not supported
- GPL2 licence issues HOT 3
- QueryAsync returns no records
- Moq with ReturnAsync for GUID is not working
- Testing Query with string array parameter
- Requesting support for Verify functions too
- Packages failed to restore: Package Moq.Dapper 1.0.7 is not compatible with net80
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moq.dapper.