Chinchilla.Integration.Features.SubscriberFaultFeature.ShouldHandleExceptionsWithDefaultExceptionHandler C# (CSharp) Метод

ShouldHandleExceptionsWithDefaultExceptionHandler() приватный Метод

private ShouldHandleExceptionsWithDefaultExceptionHandler ( ) : void
Результат void
        public void ShouldHandleExceptionsWithDefaultExceptionHandler()
        {
            using (var bus = Depot.Connect("localhost/integration"))
            {
                bus.Subscribe((HelloWorldMessage hwm) => { throw new Exception("ERMAGHERD, EXPLODE!!11"); });
                bus.Publish(new HelloWorldMessage { Message = "subscribe!" });

                WaitForDelivery();

                Assert.That(admin.Exists(IntegrationVHost, new Queue("ErrorQueue")));
                Assert.That(admin.Exists(IntegrationVHost, new Exchange("ErrorExchange")));

                var messages = admin.Messages(IntegrationVHost, new Queue("ErrorQueue"));
                Assert.That(messages.Count(), Is.EqualTo(1));
            }
        }