Git Product home page Git Product logo

Comments (10)

kbarkhausen avatar kbarkhausen commented on July 27, 2024 1

Hey, Luca. I created an example console app that uses OpenCQRS. I am not sure if I am using the framework correctly so I would be interested in your suggestions. It may be a good example to help others learn how to use it. Source: OpenCqrs Command Line Interface

from opencqrs.

kbarkhausen avatar kbarkhausen commented on July 27, 2024 1

Disregard my previous message. I am able to fully test command and event handlers. I will update my project with unit tests shortly. It should provide a good base for starting to learn to use the framework for creating commands and/or CLI apps.

from opencqrs.

lucabriguglia avatar lucabriguglia commented on July 27, 2024

I'm treating this as a bug, once fixed, I'll published an example of a console app.
Thanks.

from opencqrs.

kbarkhausen avatar kbarkhausen commented on July 27, 2024

I am trying to learn how to properly use the OpenCQRS framework. I am creating a Console App that uses commands and events. I was able to override the Resolver using my own that uses the Net Core ServiceProvider. I did use AutoFac to improve the DI implementation. I can add this into your examples once I get it fully working (if this ineterests you). My console app does not use AggregateRoot or Event sourcing - just commands, events and the dispatcher. Maybe you want to review it and improve how I used the framework.

from opencqrs.

lucabriguglia avatar lucabriguglia commented on July 27, 2024

Yes that would be really interesting, thanks! Bear in mind that I'm removing the examples from the main repository as I'm going to create a separate one for each of them.
You could create a separate repository with your fully working version and post the link here for the time being.

from opencqrs.

lucabriguglia avatar lucabriguglia commented on July 27, 2024

Hi Klaus, I'll have a look as soon as I can.
I'll also create a new section in the wiki with examples from other developers.

from opencqrs.

lucabriguglia avatar lucabriguglia commented on July 27, 2024

Hey @kbarkhausen, I had a look and I think you are using it correctly.
I would use a different approach when managing data but they are just implementation details and personal preferences.
I have created a new Example page in the Wiki and added a link to your project (https://github.com/OpenCQRS/OpenCQRS/wiki/Examples).

from opencqrs.

kbarkhausen avatar kbarkhausen commented on July 27, 2024

Luca thanks for the comments. I do have a major problem that maybe you can clarify in your framework. How would I unit test the command handlers? The command that implements ICommandHandlerWithEventsAsync does not provide access to the method that implements the logic in the command which is: async Task<IEnumerable> ICommandHandlerWithEventsAsync.HandleAsync(CreateCommand command).

Today's market demands fully tested code. Without the capability of unit testing, any framework would be useless. Any suggestions?

from opencqrs.

lucabriguglia avatar lucabriguglia commented on July 27, 2024

Great news! Any queries/comments are more than welcome :-)
And please let me know if you have any suggestions on how I can improve the documentation for the framework.

from opencqrs.

lucabriguglia avatar lucabriguglia commented on July 27, 2024

Closing this issue, #35 will be used instead.

from opencqrs.

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.