Open totemcaf opened 7 months ago
When an aggregate is loaded from a Snapshot, and no additional events are applied, the version is left in 0.
After the snapshot was read from DB and applied to the Aggregate, the aggregate version is set to the corresponding to the Snapshot:
a.SetAggregateVersion(snapshot.Version)
See TestAggregateStore_TakeSnapshot_no_additional_events_after_snapshot_was_saved
TestAggregateStore_TakeSnapshot_no_additional_events_after_snapshot_was_saved
coverage: 67.319% (-0.04%) from 67.361% when pulling 6a31b3c9c0d9824228d8b3f1aaf20cff31c8a3c6 on AltScore:fix/414-set-version-on-snapshot-load into ac3a97277ea36ba535abd96e0bdad033bd243193 on looplab:main.
@maxekman can you give a look at this?
Description
When an aggregate is loaded from a Snapshot, and no additional events are applied, the version is left in 0.
Affected Components
Related Issues
414
Solution and Design
After the snapshot was read from DB and applied to the Aggregate, the aggregate version is set to the corresponding to the Snapshot:
Steps to test and verify
See
TestAggregateStore_TakeSnapshot_no_additional_events_after_snapshot_was_saved