示例#1
0
        public void Create_HasQueueInConfig_ReturnsAdapter()
        {
            var adapter = _constructor.Create(QueueId, false);

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