private void StreamLogCanOpenAnExistingStream()
        {
            var serializer = CreateSerializer();

            using (var memoryStream = new MemoryStream())
            {
                var log1 = new StreamLog <TestOperation>(memoryStream, serializer);
                TestLog(log1);

                var log2 = new StreamLog <TestOperation>(memoryStream, serializer);

                var entries = log2.GetCursor(1).ToArray();
                entries.Should().HaveCount(3);
                entries[0].Id.Should().Be(new LogEntryId(1, 1));
                entries[1].Id.Should().Be(new LogEntryId(1, 2));
                entries[2].Id.Should().Be(new LogEntryId(1, 3));
            }
        }
        void StreamLogCanOpenAnExistingStream()
        {
            var serializer = CreateSerializer();
            using (var memoryStream = new MemoryStream())
            {
                var log1 = new StreamLog<TestOperation>(memoryStream, serializer);
                TestLog(log1);

                var log2 = new StreamLog<TestOperation>(memoryStream, serializer);

                var entries = log2.GetCursor(1).ToArray();
                entries.Should().HaveCount(3);
                entries[0].Id.Should().Be(new LogEntryId(1, 1));
                entries[1].Id.Should().Be(new LogEntryId(1, 2));
                entries[2].Id.Should().Be(new LogEntryId(1, 3));
            }
        }