Exemplo n.º 1
0
        public void rollback_on_send_does_not_send_message()
        {
            var sender       = ObjectMother.QueueManager("test2", 23457);
            var sendingScope = sender.BeginTransactionalScope();

            sendingScope.Send(ObjectMother.UriFor(23456), ObjectMother.MessagePayload());
            sendingScope.Rollback();

            var receivingScope = queueManager.BeginTransactionalScope();

            Assert.Throws <TimeoutException>(() => receivingScope.Receive("h", TimeSpan.FromSeconds(1)));
            sender.Dispose();
        }