public void RollbackTest() { _log.Add(new TestEventOne(), TestEndpoint.Default); _log.Add(new TestEventOne(), TestEndpoint.Default); _log.Add(new TestEventOne(), TestEndpoint.Default); _log.Rollback(); _log.Length.Should().Be(0); }
public async Task RollbackTest() { await _log.Add(new TestEventOne(), TestEndpoint.GetDefault()); await _log.Add(new TestEventOne(), TestEndpoint.GetDefault()); await _log.Add(new TestEventOne(), TestEndpoint.GetDefault()); await _log.Rollback(); (await _log.GetLength()).Should().Be(0); }