Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public with_snapshot_only()
 {
     Snapshots = new DefaultSnapshotStore(new InMemoryPersistence());
 }
Exemplo n.º 3
0
 public with_snapshots_and_idempotent_command()
 {
     Snapshots = new DefaultSnapshotStore(new InMemoryPersistence());
 }