Beispiel #1
0
        public async void create_stream()
        {
            var stream = _streams.Open("stream_1");
            await stream.Append("payload");

            var acc = new Tape();
            await Store.ScanPartitionAsync("stream_1", 0, ScanDirection.Forward, acc.Record);

            Assert.Equal(1, acc.Length);
            Assert.Equal("payload", acc[0]);
        }
Beispiel #2
0
 private IStream OpenStream(string id)
 {
     return(_streams.Open(id));
 }