Comments (10)
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.
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.
I'm treating this as a bug, once fixed, I'll published an example of a console app.
Thanks.
from opencqrs.
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.
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.
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.
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.
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.
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.
Closing this issue, #35 will be used instead.
from opencqrs.
Related Issues (20)
- [Question] About CommandSequence exception handling HOT 3
- Saga Pattern HOT 8
- InvalidOperationException: Unable to resolve service for type HOT 13
- Approximate Date for Snapshot support? HOT 1
- Support for tenant store HOT 1
- Support for custom discriminator in EF Stores HOT 1
- [Question] How can I setup the cosmos db context to use containers with shared throughtput option HOT 2
- How can I setup an ExecutionStrategy with Cosmos EF
- [Question] Is it possible to customize partition key on cosmos store? HOT 1
- Microservices example HOT 1
- Kledex 2.5.1 - Event handlers get called twice HOT 2
- About load Events HOT 5
- Decorate an event handler HOT 3
- Bulk capabilities HOT 3
- [Question] What is the process to contribute? HOT 3
- Following wiki, always getting 'Some services are not able to be constructed HOT 4
- Application templates HOT 8
- [Question] Is there any plan to use Microsoft.Azure.Cosmos ? HOT 2
- Custom handler or service HOT 1
- Kledex adds "everything" to the ServiceCollection twice, or more. HOT 2
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 opencqrs.