public override void BecauseOf() { //this would come from the saga? var message = new LegacySubscriptionClientAdded {ClientId = _clientId, ControlUri = _controlUri, DataUri = _dataUri}; Service.Consume(message); }
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)); }
private void NotifyLegacySubscriptionClientAdded() { var message = new LegacySubscriptionClientAdded { ClientId = CorrelationId, ControlUri = ControlUri, DataUri = DataUri, }; Bus.Publish(message); }
//new legacy client public void Consume(LegacySubscriptionClientAdded message) { _subscriptionServiceEndpoint.Send(new AddSubscriptionClient(message.ClientId, message.ControlUri, message.DataUri)); }