Exemplo n.º 1
0
        public async Task CloseAsyncClosesTheTransportReceiver()
        {
            var transportReceiver = new ObservableTransportReceiverMock();
            var receiver          = new EventReceiver(transportReceiver, "dummy", "0", new EventReceiverOptions());

            await receiver.CloseAsync();

            Assert.That(transportReceiver.WasCloseCalled, Is.True);
        }