예제 #1
0
        public void SessionReceiverCannotPerformMessageLock()
        {
            var receiver = new ServiceBusSessionReceiver(
                GetMockedConnection(),
                "fakeQueue",
                options: new ServiceBusReceiverOptions());

            Assert.That(async() => await receiver.RenewMessageLockAsync(
                            new ServiceBusReceivedMessage()),
                        Throws.InstanceOf <InvalidOperationException>());
        }