public void ReturnHighestVersion() { var streamId = Guid.NewGuid(); var snapshot1 = new Snapshot(streamId, 1, new Object()); var snapshot2 = new Snapshot(streamId, 10, new Object()); var snapshot3 = new Snapshot(streamId, 20, new Object()); SnapshotStore.Save(snapshot1); SnapshotStore.Save(snapshot2); SnapshotStore.Save(snapshot3); Assert.Equal(20, SnapshotStore.GetLastSnapshot(typeof(Object), streamId).Version); }