Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }