Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test case for when re hydrating an aggregate right after snapshotting it with another repository #12

Open
AGiorgetti opened this issue Jan 13, 2017 · 0 comments

Comments

@AGiorgetti
Copy link
Member

Looking at the code in OptimisticEventStream.OptimisticEventStream
if (minRevision > 0 && _committed.Count == 0)
{
throw new StreamNotFoundException();
}

we can have a error in the following case:

  • create an aggregate
  • add some events
  • snapshot it.

destroy the repository and its cache

  • reload the aggregate from a new repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant