examples of testing the domain using joliver commondomain/eventstore
Edit: due to the immaturity of and forced inheritance in CommonDomain, Documently/develop now rolls its own simpler EventRouter
Yes, I have a sample here: https://github.com/haf/Documently that shows how you can use it together and there are tests in there as well.
Basically, what it does is that is uses CommonDomain and EventStore together with a RavenDB database.
This is not an article, so I'm not including any essential parts of it. It's a sample project, which is what the questioner asks for. I don't know if the admins are stupid enough to believe the answer "I don't have any samples" is the true answer, but if they want to assert their authority, then why don't they delete the non answer that was selected as the "answer" by the questioner instead of deleting real and true answers.
I just pushed up NEventStoreExample with code I gathered in various places (StackOverflow, Documently, Greg Young's skillcast).
It's a very basic implementation of NEventStore
that uses CommonDomain
to rebuild aggregate state and an EventSpecification
base test class to test aggregate behaviour.