public AutoPublisherConsumerTests(ITestOutputHelper output) { this.output = output; config = ConfigReader.ConfigFileReadAsync("Config.json").GetAwaiter().GetResult(); var channelPool = new ChannelPool(config); topologer = new Topologer(channelPool); topologer.InitializeAsync().GetAwaiter().GetResult(); autoPublisher = new AutoPublisher(channelPool); consumer = new Consumer(channelPool, "ConsumerFromConfig"); }
public async Task CreateQueueWithArgsAsync() { var config = new Config(); config.FactorySettings.Uri = new Uri("amqp://*****:*****@localhost:5672/"); var top = new Topologer(config); await top.InitializeAsync().ConfigureAwait(false); var args = new Dictionary <string, object>() { { "Test", "Value" } }; var error = await top .CreateQueueAsync("TestQueueTest", false, false, false, args) .ConfigureAwait(false); Assert.False(error); }