public with_snapshots() { Snapshots = new DefaultSnapshotStore(new InMemoryPersistence()); Persistence.AppendAsync("Ticket_1", 1, new Changeset(1, new TicketSold())).Wait(); Persistence.AppendAsync("Ticket_1", 2, new Changeset(2, new TicketRefunded())).Wait(); }
public with_snapshot_only() { Snapshots = new DefaultSnapshotStore(new InMemoryPersistence()); }
public with_snapshots_and_idempotent_command() { Snapshots = new DefaultSnapshotStore(new InMemoryPersistence()); }