public ServiceBusActivator(TransportActivator transports, SubscriptionActivator subscriptions, IScheduledJobController scheduledJobs, PollingJobActivator pollingJobs, TransportSettings settings, ChannelGraph graph) { _transports = transports; _subscriptions = subscriptions; _scheduledJobs = scheduledJobs; _pollingJobs = pollingJobs; _settings = settings; _graph = graph; }
public FubuTransportationActivator(TransportActivator transports, SubscriptionActivator subscriptions, IScheduledJobController scheduledJobs, PollingJobActivator pollingJobs, TransportSettings settings) { _transports = transports; _subscriptions = subscriptions; _scheduledJobs = scheduledJobs; _pollingJobs = pollingJobs; _settings = settings; }
public void should_throw_an_exception_listing_the_channels_that_are_missing() { var graph = new ChannelGraph(); graph.Add(new ChannelNode { Key = "Foo:1", Uri = "foo://1".ToUri() }); graph.Add(new ChannelNode { Key = "Foo:2", Uri = "foo://2".ToUri() }); var subscriptions = new TransportActivator(graph, null, null, new ITransport[] { new InMemoryTransport() }, Enumerable.Empty <IFubuTransportActivator>()); Exception <InvalidOrMissingTransportException> .ShouldBeThrownBy(subscriptions.OpenChannels); }