protected IActorRef CreateReader() { var list = new List <UnpersistedEvent>(); for (var i = 0; i < 30; i++) { list.Add(new UnpersistedEvent("a", new object())); } var store = new TestStore(list); Task.WhenAll( store.WriteProjectionIndexAsync("a", 0, new long[] { 2, 4, 6, 8 }), store.WriteProjectionIndexAsync("b", 0, new long[] { 5, 10, 15, 20, 25, 30 }), store.WriteProjectionIndexAsync("c", 0, new long[] { 3, 6, 9, 12, 15, 18, 21, 24, 27, 30 }) ).Wait(); var factory = new MockPersistedEventFactory(); var props = Props.Create <ReadIndexedProjectionStreamWorker>(store, factory); return(Sys.ActorOf(props)); }