Skip to content

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

Description

@AGiorgetti

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions