Code Monkey home page Code Monkey logo

Comments (4)

davemcmanus avatar davemcmanus commented on May 24, 2024 9

Verify( ) support is highly desired.

from moq.dapper.

UnoSD avatar UnoSD commented on May 24, 2024

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.

EricRohlfs avatar EricRohlfs commented on May 24, 2024

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.

UnoSD avatar UnoSD commented on May 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.