public void Can_store_and_read_checkpoint(long?checkpoint) { _checkpointStore.Write(checkpoint); var returned = _checkpointStore.Read(); returned.ShouldBe(checkpoint); }
public async Task Commit(CancellationToken cancellationToken = default(CancellationToken)) { await _inner.Commit(cancellationToken).ConfigureAwait(false); _checkpointStore.Write(_lastCheckpoint); }