public void AppendOnlyShouldSave() { var rootId = Guid.NewGuid(); var eventBus = new MemoryEventBus(new MemoryResolver()); var appendOnly = new MemoryAppendOnlyStore(eventBus); var eventStore = new EventStore(appendOnly, eventBus); appendOnly.Append(rootId, "NyAggregateType", 1, new List <IEvent> { new ProductCreated(Guid.NewGuid(), "test", "") }); var stream = eventStore.LoadEventStream(rootId); Assert.True(eventStore.Any(rootId)); Assert.True(stream.Version == 1); Assert.True(stream.Events.Any()); }