Giter VIP home page Giter VIP logo

Comments (3)

Elfocrash avatar Elfocrash commented on June 15, 2024

Hello @MatsJakobsson and thanks for opening this.

Up until 2.5.0 the constructor for CosmosResponse was public and I accidentally set it back to internal.
The idea was that if people wanted to wrap their CosmosDB responses with this single response object, they should be able to. I don't know how this will be in 3.0 but for now I am changing back to public as it would be a breaking change.

This should allow you to to create the object on your Mocking framework's Returns method. Does that sound ok?

from cosmonaut.

MatsJakobsson avatar MatsJakobsson commented on June 15, 2024

Wow! You are fast! :)

Sounds great! An interface would be even more flexible, but a public constructor would simplify a lot.

Thanks!

from cosmonaut.

Elfocrash avatar Elfocrash commented on June 15, 2024

Public constructors added back in 2.6.2. Feel free to upgrade. Don’t forget to read the response handling sector of the readme page.

Yeah I think I’ll have to rethink some appoaches in 3.0, this one included. The end goal would be an interface but I can’t massively change interfaces without a major release atm.

Thanks for raising this issue and thanks for using Cosmonaut.
Closing this for now. Feel free to open a new issue if you find some problem.

from cosmonaut.

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.