Code Monkey home page Code Monkey logo

Comments (4)

robdmoore avatar robdmoore commented on August 16, 2024

Hi Michael,

Is there a reason why you can use it by including TestStack.Dossier? There isn't much extra weight on top of the Any stuff in Dossier (NSubstitute as a dependency and a couple of extra classes). The way I see it the Any stuff is as much a first class citizen as the TestDataBuilder stuff is (that isn't really reflected in the documentation yet though).

I'm not completely adverse to pulling it out to a separate library, but just not sure if there is a point since it's easy to use it separately now :)

If we did pull it out another name idea would be TestStack.Anon.

Thoughts @mwhelan @MehdiK @JakeGinnivan?

from teststack.dossier.

michael-wolfenden avatar michael-wolfenden commented on August 16, 2024

Rob,

Not concerned about the weight, thinking more from a separation of concerns perspective. I've been doing a bunch of loading testing and setting up sample data.I think the ability to create anonymous data would be of great benefit to the community. Like you say, you think of it as a first class citizan so why not treat it as such?

It just thought it would be cool to import a package and start using Any.PositiveInteger() without creating a new AnonymousValueFixture. I was also thinking of adding all the field types from mockaroo.

from teststack.dossier.

robdmoore avatar robdmoore commented on August 16, 2024

Fair enough.

Being able to use Any.Whatever from anywhere is tricky because it removes the ability to add your own extension methods (unless you can think of a way to achieve both?).

In terms of separation of concerns you could look at it both ways - both parts of Dossier is about generating test data ;) If there are a few people that agree that it makes sense to separate out I'm more than happy to.

from teststack.dossier.

michael-wolfenden avatar michael-wolfenden commented on August 16, 2024

hmmm..just about the get on a plane so this might nor be fully thought out, but you could have a custom object hanging off Any ie. Any.Custom that people can attach their extension methods to, so Any.Custom.MySpecficMethod.

Either way, its you call.. Thanks for you responses and consideration.. I will close this issue out.

from teststack.dossier.

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.