protected virtual void TestFixtureSetUp() { _streamId = "$projection-$" + _masterProjectionId.ToString("N"); _bus = InMemoryBus.CreateTest(); _bus.Subscribe <ClientMessage.WriteEvents>(this); _bus.Subscribe <ClientMessage.ReadStreamEventsForward>(this); _ioDispatcher = new IODispatcher(_bus, new PublishEnvelope(_bus)); IODispatcherTestHelpers.SubscribeIODispatcher(_ioDispatcher, _bus); _reader = new MasterCoreProjectionResponseReader(_bus, _ioDispatcher, _workerId, _masterProjectionId); }
private void EnterStartSlaveProjectionsRequested() { _masterProjectionResponseReader = new MasterCoreProjectionResponseReader( _publisher, _ioDispatcher, _workerId, _projectionCorrelationId); _masterProjectionResponseReader.Start(); _publisher.Publish( new ProjectionManagementMessage.Command.StartSlaveProjections( new PublishEnvelope(_inputQueue), new ProjectionManagementMessage.RunAs(_runAs), _name, _projectionProcessingStrategy.GetSlaveProjections(), _workerId, _projectionCorrelationId)); }