public async Task concurrency_Exception_when_trying_to_commit_with_an_existing_version() { var commit = Setup.UnversionedCommit(); var comm2 = Setup.UnversionedCommit(guid: commit.CommitId); await _store.Append(commit); _store.Import(new Commit(2, commit)); try { await _store.Append(Setup.UnversionedCommit(guid: commit.CommitId)); throw new Exception(); } catch (ConcurrencyException ex) { } catch { throw new Exception(); } }
public void ImportCommit(Commit commit) => _store.Import(commit);