public TwitterEngine()
 {
     _views   = new TwitterViews(_store);
     _runtime = new DomainBuilder()
                .PersistOn(() => _store)
                .WithSnapshotsOn(() => _snapshots)
                .CreateAggregatesWith(() => _aggregateFactory)
                .BroadcastTo(_views.Process)
                .Build();
 }
 public TwitterEngine()
 {
     _views   = new TwitterViews(id => new ReadOnlyStream(id, _persistence));
     _runtime = new DomainBuilder()
                .PersistOn(() => _persistence)
                .WithSnapshotsOn(() => new DefaultSnapshotStore(new InMemoryPersistence(new InMemoryPersistenceOptions())))
                .CreateAggregatesWith(() => new DefaultAggregateFactory())
                .BroadcastTo(_views.Watch)
                .Build();
 }