public given_a_topic_sender() { this.sut = new TestableTopicSender(this.Settings, this.Topic, new Incremental(1, TimeSpan.Zero, TimeSpan.Zero)); var tokenProvider = TokenProvider.CreateSharedSecretTokenProvider(this.Settings.TokenIssuer, this.Settings.TokenAccessKey); var serviceUri = ServiceBusEnvironment.CreateServiceUri(this.Settings.ServiceUriScheme, this.Settings.ServiceNamespace, this.Settings.ServicePath); var manager = new NamespaceManager(serviceUri, tokenProvider); manager.CreateSubscription(this.Topic, "Test"); var messagingFactory = MessagingFactory.Create(serviceUri, tokenProvider); this.subscriptionClient = messagingFactory.CreateSubscriptionClient(this.Topic, "Test"); }
public given_a_topic_sender() { this.sut = new TestableTopicSender(this.Settings, this.Topic, new Incremental(1, TimeSpan.Zero, TimeSpan.Zero)); var tokenProvider = TokenProvider.CreateSharedSecretTokenProvider(this.Settings.TokenIssuer, this.Settings.TokenAccessKey); var serviceUri = ServiceBusEnvironment.CreateServiceUri(this.Settings.ServiceUriScheme, this.Settings.ServiceNamespace, this.Settings.ServicePath); var manager = new NamespaceManager(serviceUri, tokenProvider); manager.CreateSubscription(this.Topic, "Test"); var messagingFactory = MessagingFactory.Create(serviceUri, tokenProvider); this.subscriptionClient = messagingFactory.CreateSubscriptionClient(this.Topic, "Test"); }