public void Create_HasQueueInConfig_ReturnsAdapter()
        {
            var adapter = _constructor.Create(QueueId);

            Assert.Multiple(() =>
            {
                Assert.That(adapter, Is.Not.Null);
                Assert.That(adapter.Configuration, Is.Not.Null);
                Assert.That(adapter.Configuration.Id, Is.EqualTo(QueueId));
            });
        }
Beispiel #2
0
 public void Create_HasNoQueueInConfig_Exception()
 {
     Assert.Throws <MessagingConfigurationException>(() => _constructor.Create(string.Empty),
                                                     "There are no configuration with id '' in configuration file");
 }