public override void BecauseOf()
        {
            //this would come from the saga?
            var message = new LegacySubscriptionClientAdded {ClientId = _clientId, ControlUri = _controlUri, DataUri = _dataUri};

            Service.Consume(message);
        }
Exemple #2
0
        public void BecauseOf()
        {
            //this would come from the saga?
            var message = new LegacySubscriptionClientAdded {
                ClientId = _clientId, ControlUri = _controlUri, DataUri = _dataUri
            };

            Service.Consume(message);
        }
 public void MessageShouldBePublished()
 {
     var msg = new LegacySubscriptionClientAdded
                   {
                       ClientId = CorrelationId,
                       ControlUri = MockBus.Endpoint.Uri,
                       DataUri = CorrelationUri
                   };
     MockBus.AssertWasCalled(bus => bus.Publish(msg));
 }
        public void Then()
        {
            var message = new LegacySubscriptionClientAdded
            {
                ClientId   = CorrelationId,
                ControlUri = MockBus.Endpoint.Uri,
                DataUri    = CorrelationUri,
            };

            MockBus.AssertWasCalled(bus => bus.Publish(message));
        }
        public void MessageShouldBePublished()
        {
            var msg = new LegacySubscriptionClientAdded
            {
                ClientId   = CorrelationId,
                ControlUri = MockBus.Endpoint.Uri,
                DataUri    = CorrelationUri
            };

            MockBus.AssertWasCalled(bus => bus.Publish(msg));
        }
Exemple #6
0
        private void NotifyLegacySubscriptionClientAdded()
        {
            var message = new LegacySubscriptionClientAdded
            {
                ClientId   = CorrelationId,
                ControlUri = ControlUri,
                DataUri    = DataUri,
            };

            Bus.Publish(message);
        }
        public void Then()
        {
            var message = new LegacySubscriptionClientAdded
                              {
                                  ClientId = CorrelationId,
                                  ControlUri = MockBus.Endpoint.Uri,
                                  DataUri = CorrelationUri,
                              };

            MockBus.AssertWasCalled(bus => bus.Publish(message));

        }
 //new legacy client
 public void Consume(LegacySubscriptionClientAdded message)
 {
     _subscriptionServiceEndpoint.Send(new AddSubscriptionClient(message.ClientId, message.ControlUri, message.DataUri));
 }