public SlaveProjectionsStarted(
     Guid coreProjectionCorrelationId,
     Guid workerId,
     SlaveProjectionCommunicationChannels slaveProjections)
 {
     _coreProjectionCorrelationId = coreProjectionCorrelationId;
     _workerId         = workerId;
     _slaveProjections = slaveProjections;
 }
        protected override void Given()
        {
            _spoolProcessingResponseDispatcher = new SpooledStreamReadingDispatcher(GetInputQueue());

            _bus.Subscribe(_spoolProcessingResponseDispatcher.CreateSubscriber<PartitionProcessingResult>());

            _slave1 = Guid.NewGuid();
            _slave2 = Guid.NewGuid();

            _checkpointHandledThreshold = 10;
            _checkpointUnhandledBytesThreshold = 10000;

            _configureBuilderByQuerySource = source =>
            {
                source.FromCatalogStream("catalog");
                source.AllEvents();
                source.SetOutputState();
                source.SetByStream();
            };
            _slaveProjections =
                new SlaveProjectionCommunicationChannels(
                    new Dictionary<string, SlaveProjectionCommunicationChannel[]>
                    {
                        {
                            "slave",
                            new[]
                            {
                                new SlaveProjectionCommunicationChannel("s1", Guid.Empty, _slave1, GetInputQueue()),
                                new SlaveProjectionCommunicationChannel("s2", Guid.Empty, _slave2, GetInputQueue())
                            }
                        }
                    });

            TicksAreHandledImmediately();
            AllWritesSucceed();
            NoOtherStreams();
        }
 public SlaveProjectionsStarted(
     Guid coreProjectionCorrelationId,
     Guid workerId,
     SlaveProjectionCommunicationChannels slaveProjections)
 {
     _coreProjectionCorrelationId = coreProjectionCorrelationId;
     _workerId = workerId;
     _slaveProjections = slaveProjections;
 }
 public void AssignSlaves(SlaveProjectionCommunicationChannels slaveProjections)
 {
     throw new NotImplementedException();
 }
 public void AssignSlaves(SlaveProjectionCommunicationChannels slaveProjections)
 {
     // intentionally ignored 
 }
 protected override void Given()
 {
     base.Given();
     _slaveProjections = null;
 }