public void Given_A_Subscription_When_I_Call_StopConsuming_Then_It_Calls_The_Correct_Service_Method()
        {
            //arrange
            _subscriberServiceMock.Setup(s => s.StopConsuming());

            //act
            _sut.StopConsuming();

            //assert
            _subscriberServiceMock.Verify(v => v.StopConsuming());
        }
Esempio n. 2
0
        public void CancelAllSubscriptions()
        {
            try
            {
                _queueApi
                .StopConsuming();
            }
            catch (Exception e)
            {
                _logger.Error($"Could not stop consuming subscription because '{e.Message}'");
                throw;
            }

            _logger.Info($"Stopped consuming Subscription to '{_subscriptionId}' for project '{_configurationProvider.ProjectId}'");
        }
 public void CancelAllSubscriptions()
 {
     _queueProvider
     .StopConsuming();
 }