public void TestCreateWithDefaultOptions() { AmqpProvider provider = ProviderFactory.Create(new Uri("amqp://localhost:5672")) as AmqpProvider; Assert.IsNotNull(provider); Assert.AreEqual(AmqpProvider.DEFAULT_MAX_HANDLE, provider.MaxHandle); }
public void TearDown() { if (provider != null) { provider.Close(); provider = null; } }
public void TestCreateWithCustomOptions() { Uri uri = new Uri("amqp://localhost:5672" + "?" + "amqp.maxHandle=" + customMaxHandle); AmqpProvider provider = ProviderFactory.Create(uri) as AmqpProvider; Assert.IsNotNull(provider); Assert.AreEqual(customMaxHandle, provider.MaxHandle); }
public void TestCreate() { provider = ProviderFactory.Create(GetDefaultUri()) as AmqpProvider; }