public void CommitTest() { _log.Add(new TestEventOne(), TestEndpoint.Default); _log.Add(new TestEventOne(), TestEndpoint.Default); _log.Add(new TestEventOne(), TestEndpoint.Default); _log.Commit(); _log.Length.Should().Be(3); }
public async Task CommitTest() { await _log.Add(new TestEventOne(), TestEndpoint.GetDefault()); await _log.Add(new TestEventOne(), TestEndpoint.GetDefault()); await _log.Add(new TestEventOne(), TestEndpoint.GetDefault()); await _log.Commit(); (await _log.GetLength()).Should().Be(3); }