Пример #1
0
        public void write_read_and_delete_when_configured_as_default()
        {
            EventStore.Configure(Configure.AsDefault());

            var    ev     = new TestEvent("Some data");
            string stream = "stream-configure_on_default-" + Guid.NewGuid();

            EventStore.AppendToStream(stream, ExpectedVersion.Any, new[] { ev });

            var events = EventStore.ReadEventStream(stream, 0, 5);

            Assert.AreEqual(events.Events[1].EventId, ev.EventId);

            EventStore.DeleteStream(stream);
        }
Пример #2
0
 public void delete_not_existing_stream()
 {
     EventStore.Configure(Configure.AsDefault());
     EventStore.DeleteStream(Guid.NewGuid().ToString());
 }